User login

Set the return path for e-mail sent by a web server

ServerAdmin webmaster@host.some_domain.com

this is set for us, but apache process (Linux user www-data) still is sending e-mail as www-data@domain.name

nada:
Won't send email
http://drupal.org/node/103092

help with drupal sending mail
http://drupal.org/node/11570

I think I've identified our problem:

php mail() set from address

http://us2.php.net/mail

problem is a bad return-path of www-data@domain.name

http://www.freesoft.org/CIE/RFC/822/28.htm

There's a module for that...

http://drupal.org/project/returnpath

Resolution

Searched words: 
return path for e-mail sent by webserver web server set from address email debian web server set from address email debian www-data sends mail e-mail fix email blackhole does not receive e-mail sender mail source drak

Comments

Mail server

To enable a server to send mail to the outside world in a reliable way for all its users is to setup the domain name and the mail server correctly. We must make sure that the fully qualified domain name the mail server uses is matched by a DNS record pointing to the originating server.

There is more than one way to configure the mail domain a server uses when sending email, e.g. by setting /etc/mailname or writing it to the mail server's configuration. By default the hostname is used which can be set with the hostname tool.

Debian's package installer prompts for a mailname during the installation process. For changing it later dpkg-reconfigure can be used. E.g. # dpkg-reconfigure postfix when postfix is your mail server of choice.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.