onesandtwos
IS-IT--Management
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
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