• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Resolved No emails sending from PHP mail

Collins

New Pleskian
Im new to plesk, and this is the first VPS i have used.

When i try to send an email through my contact form on my Drupal website, it says it sent successfully, but the email never arrives.

In /var/log/mail.log I get the following...

Feb 11 12:41:11 localhost plesk sendmail[40139]: Unable to get sender domain by sender mailname
Feb 11 12:41:11 localhost plesk sendmail[40139]: handlers_stderr: SKIP
Feb 11 12:41:11 localhost plesk sendmail[40139]: SKIP during call 'check-quota' handler
Feb 11 12:41:11 localhost plesk sendmail[40139]: Unable to get sender domain by sender mailname
Feb 11 12:41:11 localhost postfix/pickup[38651]: C509B1034BE: uid=10000 from=<[email protected]>
Feb 11 12:41:11 localhost postfix/cleanup[40127]: C509B1034BE: message-id=<[email protected]>
Feb 11 12:41:11 localhost postfix/qmgr[1522]: C509B1034BE: from=<[email protected]>, size=465, nrcpt=4 (queue active)
Feb 11 12:41:11 localhost postfix/local[40131]: C509B1034BE: to=<[email protected]>, orig_to=<=>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "=")
Feb 11 12:41:11 localhost postfix/smtp[40130]: C509B1034BE: to=<[email protected]>, relay=mx00.1and1.co.uk[212.227.15.41]:25, delay=0.1, delays=0.01/0/0.08/0, dsn=5.0.0, status=bounced (host mx00.1and1.co.uk[212.227.15.41] refused to talk to me: 550-Requested action not taken: mailbox unavailable 550-Reject due to policy restrictions. 550 For explanation visit http://postmaster.1and1.com/en/error-messages?ip=77.68.14.31&c=poli)

Can anyone help me resolve this please?
 
Does your mail include a "FROM" header and is the address given in the "FROM" a valid address of the collins.com domain?
Is collins.com the correct sender domain?
Does reverse DNS (PTR) of collins.com point to the IP address you are sending from?
Does collings.com have an SPF record and is the sending server included in that record so that is allowed to send mail on behalf of collins.com?
 
Ah! I found the solution.

As it was a new plesk install, under /plesk/server/preferences/ I still had localhost.localdomain

As soon as I updated this to a real domain, e.g. vps.mydomain.com then the email started working.
 
Back
Top