1

Topic: www-data in Return-path

==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: Debian 6
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hi,
I feel that pretty close to have fully configured server but there is still one problem, from time to time I get replay with delivery problem:

<www-data@server.domain2.com>: Sender address rejected: MX record not found (in reply to RCPT TO command)

I don't want to write everything from beginning, so here is my last topic with all informations:
http://www.iredmail.org/forum/topic1021 … oblem.html

How can I force postfix/server to set correct Return-path per each domain? I want to have:
- bounce@domain1.com
- bounce@domain2.com
- etc.

I found information at some drupal forum to make changes in /etc/hosts:

It was a sendmail problem and sendmail was getting the hostname from the first line of the hosts file. I modified hosts in 2 ways:

127.0.0.1 localhost.localdomain localhost myserver

became

127.0.0.1 myserver.mydomain localhost.localdomain localhost 
111.111.111.111 myserver.mydomain 

where 111.111.111.111 is my IP.

Its all working now.

Thanks for all the help!

Mark

Does it make sense? I don't want to experiment.

My /etc/hosts looks like this:

127.0.0.1       server.domain2.com server localhost
127.0.1.1       debian.ispdomain.com    debian

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Thank you,
ag

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: www-data in Return-path

The easiest way to fix it is modifying your mailer to set a 'Return-Path:' header directly, just like specify 'From:', 'To:'.

3

Re: www-data in Return-path

Mailer? Do you mean php mail? Or mail client?

Either it won't fix the problem because sometimes my email get bounces because there is www-data in return-path, send by php scripts or users throug mail clients.

Maybe I could add some kind of MX entry in my ISP DNS panel for each domain where I will point that server.domain2.com is valid?

4

Re: www-data in Return-path

ag wrote:

Mailer? Do you mean php mail? Or mail client?

The 'www-data' is Apache/Nginx daemon user name, so i guess you send out email via a web-based mailer like php mailer or other web application. You can ask the mailer to specify 'Return-Path:' header with a proper email address.