• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Postfix Problem when sending mails from PHP site / Mail gets bounced

C

Chris Redfield

Guest
Hi all,

i currently moved my website from a Plesk 8x Suse Professional Server to a Plesk 9.5 opensuse server...

Mail send via SMTP Accounts that have been created via Plesk work fine and are being accepted by all tested external recipients.
When my website tries to send a mail via php mail function the mail gets bounced. mail.info logfile in /var/logs/ says following:

Aug 10 08:51:15 hXXXXXX postfix/pickup[28096]: D5ACB1CBC001: uid=30 from=<wwwrun>

Aug 10 08:51:15 hXXXXXX postfix/cleanup[1703]: D5ACB1CBC001: message-id=<[email protected]>

Aug 10 08:51:15 hXXXXXX postfix/qmgr[28095]: D5ACB1CBC001: from=<[email protected]>, size=1194, nrcpt=1 (queue active)

Aug 10 08:51:15 hXXXXXX postfix/smtpd[1709]: connect from unknown[127.0.0.1]

Aug 10 08:51:15 hXXXXXX postfix/smtpd[1709]: EBE5965BC5A9: client=unknown[127.0.0.1]

Aug 10 08:51:16 hXXXXXX postfix/cleanup[1703]: EBE5965BC5A9: message-id=<[email protected]>

Aug 10 08:51:16 hXXXXXX postfix/qmgr[28095]: EBE5965BC5A9: from=<[email protected]>, size=1383, nrcpt=1 (queue active)

Aug 10 08:51:16 hXXXXXX postfix/smtp[1706]: D5ACB1CBC001: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10027, delay=0.32, delays=0.07/0.01/0.06/0.19, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as EBE5965BC5A9)

Aug 10 08:51:16 hXXXXXX postfix/qmgr[28095]: D5ACB1CBC001: removed

Aug 10 08:51:16 hXXXXXX postfix/smtpd[1709]: disconnect from unknown[127.0.0.1]

Aug 10 08:51:16 hXXXXXX postfix/smtp[1712]: EBE5965BC5A9: to=<[email protected]>, relay=mx0.gmx.net[213.165.64.100]:25, delay=0.27, delays=0.17/0.02/0.06/0.02, dsn=5.1.8, status=bounced (host mx0.gmx.net[213.165.64.100] said: 550 5.1.8 Cannot resolve your domain {mx011} (in reply to MAIL FROM command))

Aug 10 08:51:16 hXXXXXX postfix/cleanup[1703]: 423031CBC001: message-id=<[email protected]>

Aug 10 08:51:16 hXXXXXX postfix/qmgr[28095]: 423031CBC001: from=<>, size=3339, nrcpt=1 (queue active)

Aug 10 08:51:16 hXXXXXX postfix/bounce[1713]: EBE5965BC5A9: sender non-delivery notification: 423031CBC001

Aug 10 08:51:16 hXXXXXX postfix/qmgr[28095]: EBE5965BC5A9: removed

Aug 10 08:51:16 hXXXXXX postfix/smtp[1706]: 423031CBC001: to=<[email protected]>, relay=none, delay=0.01, delays=0.01/0/0.01/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=hXXXXXX.localdomain type=AAAA: Host not found)

Aug 10 08:51:16 hXXXXXX postfix/qmgr[28095]: 423031CBC001: removedAug 10 08:51:15 hXXXXXX postfix/pickup[28096]: D5ACB1CBC001: uid=30 from=<wwwrun>

i guess that it gets bounced because it looks for domain name resolution for hXXXXXX.localdomain which is not a valid Domain...

I would appreciate any hints very much!

Thanks in advance,

chrisred
 
Look at main Plesk maillog /usr/local/psa/var/log/maillog at least.
 
Maybe this hXXXXXX.localdomain is defined in some web application settings?
 
not that i know. afaik this seems to be the sender's domain name which should be replaced by postfix to the real domain name?
 
I have seen that there are some ipv6 records in DNS settings in YAST. Is this a problem?
Is there a possibility to change these in Plesk as well?
 
I think you are sending the header of the mail in a wrong way and this is why not deliver it the mail. What mail package do you use to send mail?
 
Hi, and thanks for your help.

The Problem has now been solved. I modified the $mydomain value in the main.cf . Now outgoing mails are shown as sent from the right domain with a resolveable hostname.
 
How has been solved the problem in main.cf

Hi Chris can you please give me more details how you have been solved the problem of Postfix when sending mails from PHP site?
In fact what changes have you made in the $mydomain value in the main.cf ?

Thank you in advance!
 
Back
Top