Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PostFix Null Clients

Status
Not open for further replies.

onesandtwos

IS-IT--Management
Oct 18, 2005
3
GB
I've been setting up a LAMP webserver that needs to send mail from noreply@domain.com but not receive any emails using postfix.

Getting postfix to send mail is ok when the domain it is sending to is external (different to domain.com). However, if the domain is the same as #myhostname (domain.com) then i'm guessing linux tries to relay that message internally which produces an error in syslog as given below....

Dec 20 14:43:43 webserver postfix/smtp[7170]: connect to mail.domain.com[xxx.xxx.xxx.xxx]: Connection timed out (port 25)
Dec 20 14:43:43 webserver postfix/smtp[7170]: 9392F17DC97: to=<m.kay@domain.com>, relay=none, delay=2596, status=deferred (connect to mail.domain.com[xxx.xxx.xxx.xxx]: Connection timed out)

... where xxx.xxx.xxx.xxx is the IP of my router.

Reading the documentation I am guessing I am trying to setup a "Null Client" but I'm not exactly sure

To do this it says....

/etc/postfix/main.cf:
myorigin = domain.com
relayhost = domain.com
local_transport = error:local delivery is disabled

/etc/postfix/master.cf:
Comment out the SMTP server entry
Comment out the local delivery agent entry

I'm really new to Postfix and email servers in general and I don't know what "Comment out the local delivery agent entry" and "Comment out the SMTP server entry" is referring to

Would appreciate any help someone could give
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top