Hi together,
i have a litlle problem.
A customer has different service email addresses.
For example
My first thought was to use this listener https://github.com/i-MSCP/imsc…ostfix_transport_table.pl
I'd added this
Everything seems to be working. If i send an email to "customer@domain-1.tld" postfix uses the relay server "mail03.domain-1.tld". The same works with the other.
But if i send an email to a different email address with another domain postfix sends the email directly to th receiver without using the relayserver.
And that ist the point.
How is it possible to use the correct relay server by sender email domain?
I'd tried to use this tutorial: https://www.jonathanneilly.co.…nt-relay-hosts-on-ubuntu/
and the file "/etc/postfix/imscp/relayhost_maps"
But now i got this error message
- Mar 12 17:28:21 mailgw postfix/qmgr[2397]: 9F9481F540: from=<service@domain-1.tld>, size=870, nrcpt=1 (queue active)
- Mar 12 17:28:22 mailgw postfix/smtp[2522]: 9F9481F540: to=<thecry@my-domain.tld>, relay=mail03.domain-1.tld[***.***.***.***]:25, delay=0.67, delays=0.13/0.02/0.44/0.06, dsn=5.0.0, status=bounced (host mail03.domain-1.tld[***.***.***.***] said: 550 #5.1.0 Address rejected. (in reply to RCPT TO command))
What do i wrong? Or is the problem on the relay server
Regards
Sascha