Mail server not sending mail to location defined in MX record
Hi,
I have an issue with Postfix that likely requires a change in my setup. The issue is this: johndoe@mycompany.com is an email address located at mail.mycompany.com, a remote mail server and the MX record location of the domain. When I send mail to this address from the web server (mycompany.com), the mail bounces because it thinks that this address is located on the localhost instead of on the remote mail server. For example, when I run: Code:
sendmail -t < mail.txt Code:
to: johndoe@mycompany.com Code:
Dec 19 14:48:52 swan postfix/local[15718]: 211C818B0B: to=<johndoe@mycompany.com>, relay=local, delay=0.22, delays=0.07/0.01/0/0.14, dsn=5.1.1, status=bounced (unknown user: "johndoe") Code:
alias_database = hash:/etc/aliases |
Change:
Code:
mydestination = mydomain.com, localhost.localdomain, localhost Code:
mydestination = host.mydomain.com, localhost.localdomain, localhost |
To exapnd on my previous post just a bit. "mydestination" are the mail domains that are considered local. I believe this is the root of your problem. "myhostname" is how the server identifies itself. Best to have the hostname or www, something that shows the mail came from your web server, that will help you when it comes to troubleshooting.
|
That fixed it - thank you!
One more issue remains: Code:
Dec 19 17:42:41 swan postfix/smtp[17100]: 3EF6918B0C: to=<johndoe@mydomain.com>, relay=mail.mydomain.com[xxx.xxx.xxx.xxx]:25, delay=0.26, delays=0.01/0/0.17/0.07, dsn=5.0.0, status=bounced (host mail.mydomain.com[216.97.239.95] said: 550-Verification failed for <www-data@mydomain.com> 550-The mail server could not deliver mail to www-data@mydomain.com. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries. 550 Sender verify failed (in reply to RCPT TO command)) Thanks again :) |
All times are GMT -5. The time now is 06:45 PM. |