I have a digitalocean server, with Mautic and Postfix configured.
I use multiple domains on my emails like @domain1, @domain2, @domain3.
For each domain, I have configured postfix (sender_dependent_relayhost_maps) to use a different relayhost.
When sending manually , if sender is x@domain1 it will go to relay.domain1
If sender is a@domain2 it will go to relayhost relay.domain2
Tried to connect manually using telnet localhost 25, and it will work always.
So, I configured Mautic to use ´Other Mail Server´, ´localhost´ , ´25´.
Mautic is sending emails ok (from every campaign), but it will only use the default relayhost, even from user x@domain1 for example
Looks likes some header is different.
Can anybody help?
PS: On console, I did
sendmail -f osvaldo@domain1 -t <<EOF
Subject: Hey, testing
Isn’t this awesome?
And it goes ok, via the correct domain1 relay.
PS2: I need this, because if I send from email@domain1 and it gets delivery by mx.domain2, the email has a higher chance of getting marked as spam.