iredmail / iRedMail

Full-featured, open source mail server solution for mainstream Linux/BSD distributions.
https://www.iredmail.org/
GNU General Public License v3.0
1.46k stars 216 forks source link

Oud Of Office auto-reply doesn't respect transport settings #234

Open jwegge opened 1 year ago

jwegge commented 1 year ago

When using a filter created in round cube (such as out of office) on a setup where all outgoing malis is sent through an external server ("Relay outgoing email to" in web front-end), this is not done for the reply generated on the server itself.

Detail: we use Proxmox mail gateway for in- & outgoing email. Iredmail is configured for all hosted domains to use the external mail gateway (in my case 10.10.10.14:26). All outgoing email is scanned by the Proxmox mail gateway EXCEPT for the "out of office" messages, which get sent directly by iredmail to the destination mailserver.

Destination mailserver may or may not accept these messages as different pub ip & hostname as the expected mail gateway (dkim & spf gets mangled).

Anzulo1984 commented 1 year ago

Yes, because it is an autoreply, it strips out sender and other stuff to avoid bounceback loops, and aswell doesn't send trough normal sasl authenticated domain settings

consider it as an advanced bounce message

jwegge commented 1 year ago

I understand, but this makes it unusable in environment where autoreply needs to follow dkim, spf etc when this is handled by an external mail gateway.

Op 2 aug. 2023, om 14:54 heeft Anzulo1984 @.***> het volgende geschreven:

Yes, because it is an autoreply, it strips out sender and other stuff to avoid bounceback loops, and aswell doesn't send trough normal sasl authenticated domain settings

consider it as an advanced bounce message

— Reply to this email directly, view it on GitHub https://github.com/iredmail/iRedMail/issues/234#issuecomment-1662161929, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASH42B63M55ZPPI3SAJDUTXTJEZ7ANCNFSM6AAAAAA27NH6EY. You are receiving this because you authored the thread.

-- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Anzulo1984 commented 1 year ago

you can manually add a virtual transport map for such things

jwegge commented 1 year ago

A hint as to how to accomplish this?

Working with sender_dependent_relayhost_maps and adding a "postmapped" file containing data underneath didn't work out. 127.0.0.1 10.10.10.14:26

Obviously the mysql "SELECT relayhost FROM sender_relayhost;" gives 10.10.10.14:26 for all hosted domains.

bcnx commented 1 year ago

you can manually add a virtual transport map for such things

Hi, I'm looking at the same problem as well and I just discovered that the autoreply mails are not using the local Postfix instance. The e-mails are sent directly to the destination e-mail servers. So Postfix virtual transport or transport maps will not help. Is there any way to send those autoreply e-mails to a relay host as well?

Thanks,

BC