Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: -pekr- on November 14, 2012, 12:10:35 pm

Title: Mail domain masquarade?
Post by: -pekr- on November 14, 2012, 12:10:35 pm
Hello guys,

I have the following specific situation. We run Zentyal 2.x server, and so far it works nicely. We have several domains hosted there, including their aliases, for both web and email. However, we also run Ispadmin server, which helps us to manage our wi-fi network users. Here's the scenario:

Zentyal server:
- multiple domains, the primary one is xidys.com
- serves as relay for ispadmin.xidys.cz machine
- hosts ispadmin.xidys.cz, so that I can receive emails for it

Ispadmin server:
- ispadmin.xidys.cz
- sends emails via relay to xidys.com server

And now, what is my problem? We have some sending policy implemented, which says, that mail.xidys.com is represented by one IP address. What we also want is Ispadmin server being able to send emails with from/reply address being set to invoices@xidys.com.

Now the trouble is, that such emails are coming back, mostly because of the policy. Simply put, we need somehow to masquarade ispadmin by using mail.xidys.com. Any solution?

Here's the error message:

 host mx60.seznam.cz[77.75.77.48] said: 550 5.7.1
    Sender Policy Framework of `xidys.com' domain denied your IP address. (in
    reply to MAIL FROM command)

and later in the header:

Received: from ispadmin.xidys.cz (localhost.localdomain [127.0.0.1])
   by ispadmin.xidys.cz (Postfix) with ESMTP id AECAB3DDD8F

The trouble is, that ispadmin.xidys.cz machine has different IP, so it will fail on checking mail.xidys.com MX record. Any suggestion of how to solve that?

Thanks,
best regards,
Petr