DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd June 2008
iainnitro iainnitro is offline
Real Name: Mike
New User
 
Join Date: Jun 2008
Location: Independence, MO USA
Posts: 2
Default Need Help Configuring Postfix

Greetings:

I am new to Postfix and need to configure Postfix to simply direct mail out from my box to my ISP mail server. It actually can direct incoming mail to my user, but this is not necessary as the box is not really a mail server. The purpose is to allow my PHP scripts to mail out (specifically Wordpress).

Thanks in advance for any help.

Mike
Reply With Quote
  #2   (View Single Post)  
Old 3rd June 2008
corey_james corey_james is offline
Uber Geek
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 238
Default

have you read through the postfix configuration files and man pages?

The config files are very intuitive !

man page

Config files:

/usr/local/etc/postfix/main.cf, Postfix configuration parameters
/usr/local/etc/postfix/master.cf, Postfix daemon processes
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison

Forum Netiquette
Reply With Quote
  #3   (View Single Post)  
Old 3rd June 2008
iainnitro iainnitro is offline
Real Name: Mike
New User
 
Join Date: Jun 2008
Location: Independence, MO USA
Posts: 2
Default

@corey

Thanks for the reply. I have been trying to do it via O' Reilly's definite guide and because I do better with examples of the file entrys. thought I would seek the help.
Reply With Quote
  #4   (View Single Post)  
Old 3rd June 2008
corey_james corey_james is offline
Uber Geek
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 238
Default

master.cf
Code:
127.0.0.1:smtp          inet  n       -       n       -       -       smtpd
add an entry for your IP ( keeping localhost )

main.cf
look at the following
  • mydomain
  • myorigin
  • mydestination
  • myhostname
  • mynetworks
  • virtual_alias_domains ( if applicable but i doubt it in your case )
  • masquerade_domains ( if applicable )

run 'postfix reload' or restart postfix once these changes have been made
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison

Forum Netiquette
Reply With Quote
  #5   (View Single Post)  
Old 5th June 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

There are tons of sample configuration files in Postfix's FAQ.

Check out: http://www.postfix.org/faq.html#null_client
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
  #6   (View Single Post)  
Old 5th June 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 659
Default

Two suggestions for a starting guide. Dated, but still helpful, Dan Langielle's FreeBSDdiary page http://www.freebsddiary.org/postfix.php

Other good one, Ned Slider's article on the CentOS wiki

http://wiki.centos.org/HowTos/postfix

Very brief, but to the point explanation of typical main.cf changes. Those won't be Linux/BSD specific, they're just postfix specific. (Much of the rest of it is about installation on CentOS, and configuring Dovecot.)
Reply With Quote
  #7   (View Single Post)  
Old 8th June 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Quote:
Originally Posted by iainnitro View Post
I am new to Postfix and need to configure Postfix to simply direct mail out from my box to my ISP mail server.
The config file option you are looking for is relayhost. Put the IP (or hostname) of the ISP mail server in there.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
It's necesary to use firmware configuring rum or zyd? ximo FreeBSD General 7 8th July 2009 10:05 AM
Configuring authpf freebsd kasse FreeBSD General 0 7th February 2009 12:32 PM
Help configuring pine cssgalactic FreeBSD General 4 29th June 2008 11:50 PM
Configuring a wireless access point Serge FreeBSD General 6 6th June 2008 04:07 PM
Configuring VLANs under FreeBSD Popof FreeBSD General 5 13th May 2008 04:08 PM


All times are GMT. The time now is 09:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick