0

I am in the process of setting up a new server which runs Ubuntu on a LAMP stack.

I have installed sendmail but it doesnt seem to work.

This is my output in the error log:

Apr 16 13:46:51 ip-10-33-164-173 sm-mta[12939]: STARTTLS=client, relay=mail.imagine-publishing.co.uk., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256
Apr 16 13:46:51 ip-10-33-164-173 sm-mta[12939]: r3GDkeJG012937: to=<[email protected]>, ctladdr=<[email protected]> (33/33), delay=00:00:11, xdelay=00:00:11, mailer=esmtp, pri=120967, relay=mail.imagine-publishing.co.uk. [86.28.80.249], dsn=5.6.0, stat=Data format error
Apr 16 13:46:51 ip-10-33-164-173 sm-mta[12939]: r3GDkeJG012937: r3GDkpJG012939: DSN: Data format error
Apr 16 13:46:51 ip-10-33-164-173 sm-mta[12939]: r3GDkpJG012939: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent

That error was taken from /var/mail/www-data
(reason: 553 5.1.8 Sender address <[email protected]> domain does not exist)

Im a bit of a newbie when it comes to server admin stuff so any help would be appriciated!

5
  • 1) Could you post bounce email generated and send to www-data? It may contain more hints. 2) Can you send email to other domains successfully?
    – AnFi
    Apr 16, 2013 at 15:48
  • (reason: 553 5.1.8 Sender address <[email protected]> domain does not exist) Apr 16, 2013 at 15:56
  • That error was taken from /var/mail/www-data Apr 16, 2013 at 15:56
  • Do your have a public IP address?
    – AnFi
    Apr 16, 2013 at 16:05
  • Yes. Do I need to use this in the config files somewhere? Apr 16, 2013 at 16:09

1 Answer 1

1

Your sendmail uses invalid "this host email name". It is used by default as domain in sender addresses. Other mail server reject such sender address (domain without DNS records).

Set both envelope sender and header sender addresses in you php configuration/script. Set them to [email protected].
http://php.net/manual/en/mail.configuration.php
http://php.net/manual/en/function.mail.php

Your sendmail should be fixed too.
Change "this host email name" to name with A or MX DNS record:
* change hostname as reported by hostname --fqdn
OR
* change it for sendmail only https://www.sendmail.com/sm/open_source/docs/m4/whoami.html

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .