Quantcast
Channel: iRedMail
Viewing all articles
Browse latest Browse all 14127

Backup MX: forwarded message changes from and to address

$
0
0

==== Required information ====
- iRedMail version: latest with OpenLDAP
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: CentOS 6.5
- Related log if you're reporting an issue: maillog
====

I installed iRed without any problems. I want to use it as backup MX, so I set the domain object with phpLDAPadmin, to 'domainBackupMX=yes'. And in main.cf I set the IP address of the primary host as relayhost.
When I sent an email on the backup server (telnet localhost 25), the mail is accepted, placed in the queue and forwarded to the primary MX.

But on the primary server, something weird is happening. The mail is accepted, but then directly sent to the from address given on the backup server.

To make it clear:
mail from: xyz@gmail.com
rcpti to: someone@example.com

On the primary, this is a (edited) part from the logfile:
Oct  9 12:47:11 HOST postfix/cleanup[16560]: A682C23DB6: hold: header Received: from HOST-backup.domain.me (HOST [IP ADDRESS])??by smtp.domain.nl (Postfix) with ESMTP id A682C23DB6??for <xyz@gmailcom>; Thu,  9 Oct 2014 12:47:11 +0200 (CEST) from HOST[IP ADDRESS]; from=<> to=<xyz@gmail.com> proto=ESMTP helo=<HOST-backup.domain.me>

So, the to address is gone/empty, and the mail is sent to the from address.

btw the primary is not an iRedserver. (will be done later, but that takes some time).

Any idea what goes wrong and where?


Viewing all articles
Browse latest Browse all 14127

Trending Articles