Postfix Mailserver CentOS

andoneknight
andoneknight used Ask the Experts™
on
Hey guys,

Ive just setup a mailserver following various tutorials and I ma now trying to send mail via PHP. The mail wokrs when sending to my googlemail.com address, but when i send to my hotmail.com address the mail just gets queued and then removed and not actually sent. Could someone guide me as to what to do? Presumably ive misconfigured something somewhere?

Here is the mailog
:
Jan 28 17:03:59 localhost postfix/pickup[24208]: 8A4874E245: uid=48 from=<apache>
Jan 28 17:03:59 localhost postfix/cleanup[24340]: 8A4874E245: message-id=<20100128170359.8A4874E245@mail.delagua.org>
Jan 28 17:03:59 localhost postfix/qmgr[24209]: 8A4874E245: from=<apache@delagua.org>, size=308, nrcpt=1 (queue active)
Jan 28 17:04:00 localhost postfix/smtp[24358]: 8A4874E245: to=<bob_test@hotmail.com>, relay=mx3.hotmail.com[65.55.37.88]:25, delay=0.82, delays=0.02/0/0.46/0.33, dsn=2.0.0, status=sent (250  <20100128170359.8A4874E245@mail.delagua.org> Queued mail for delivery)
Jan 28 17:04:00 localhost postfix/qmgr[24209]: 8A4874E245: removed
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Michael WorshamCloud/Infrastructure Solutions Architect

Commented:
Jan 28 17:04:00 localhost postfix/smtp[24358]: 8A4874E245: to=<bob_test@hotmail.com>, relay=mx3.hotmail.com[65.55.37.88]:25, delay=0.82, delays=0.02/0/0.46/0.33, dsn=2.0.0, status=sent (250  <20100128170359.8A4874E245@mail.delagua.org> Queued mail for delivery)

According to this log your email was successfully sent from your postfix, and successfully delivered to hotmail mail server. If you can't see this email in the destination mailbox (I assume that bob_test@ is your test account), than it can mean that hotmail put this email to spam, or deleted it for some reason.

Author

Commented:
Thats what i thought.. Is there anyway to find out what reason its doing that? I guess I need to change some settings somewhere?
Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

As your email was delivered to recipient's server I don't think you have something wrong with your configuration. You can always try contacting postmaster of remote server and ask what happened with your email, but I wouldn't expect fast (if any) answer from postmaster@hotmail :(
Monis MontherSystem Architect

Commented:
oklit is correct by seeing this

relay=mx3.hotmail.com[65.55.37.88]:25, delay=0.82, delays=0.02/0/0.46/0.33, dsn=2.0.0, status=sent (250  <20100128170359.8A4874E245@mail.delagua.org> Queued mail for delivery)
Jan 28 17:04:00 localhost postfix/qmgr[24209]: 8A4874E245: removed

the last line indicating that it was removed from your queues , so its sent.

Did you get a bounce message, mailer daemon , postmaster or anything back ?? just to make sure it was really delivered with no problems.

Do you have a real mx record in DNS pointing to your server, if not then probably your message was considered spam and was quarantined other wise it can be rejected and you should get a bounce message saying why it was rejected.

Author

Commented:
I think the problem might be with the MX records... I got no email in Hotmail (including junk folder - but from what i have reader about the mail responses it probably got rejected and no further processing due to something to do with the mx record i guess??)

Cheers for your help guys!

Commented:
from what i have seen, hotmail has a problem with accepting emails from addresses like "apache@", "support@", "info@" kind of generic mail addresses

try setting the from address to a more valid one like "someoneelse@" and then resend the message.

alternate stuff would be to send a real time message from your own mail id to hotmail to verify that it gets delivered, then it should work with you changing the from address.  if your individual mail also gets rejected then it is a case that you need to take up with postmaster@hotmail ... good luck

Commented:
Are you using the builtin mail() php function? Which address must be the actual sender of the email?
I fixed this problem as i am now using a relayhost!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial