Exim4 + Sophos XG Relay

Operating System & Version
CentOS v7.9
cPanel & WHM Version
106.0.9

RAM0NG1

Registered
Oct 31, 2022
1
0
1
Brazil
cPanel Access Level
Root Administrator
Hey! Good morning everyone! ;)

I'm trying to configure a relay together with another provider I have. (set up as relay)

I have an email called '[email protected]' configured as a relay and I would like to envelop messages like '[email protected]'... If I forward directly from the account, everything goes perfectly, but if I add the 'FROM ', I get the erros:

A=dovecot_login:[email protected] rejected after DATA: Your FROM address ( [email protected] , CONTACT<[email protected]> ) must match your authenticated email user ( [email protected] ). Spoofing not allowed!


Section: AUTH:

sophos_login:
driver = plaintext
public_name = LOGIN
client_send = : [email protected] : pass

Section: PREROUTERS:

send_via_sophos:
driver = manualroute
domains = ! +local_domains
senders = *@sub.domain.com
transport = sophos_smtp
route_list = "* imap.sophos.com::25 byname"
host_find_failed = defer
no_more


Section: TRANSPORTSTART:

sophos_smtp:
driver = smtp
hosts = imap.sophos.com
hosts_require_auth = mail.domain.com
#hosts_require_tls = mail.domain.com


I would like some help to resolve this issue and allow wrapping of sub.domain.com in domain.com to be allowed.
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there! I don't personally have anything to add to this as this level of customization to Exim is a bit beyond our normal support, but I'll leave this thread marked as new for a bit for visibility in the hopes that others have experience in this area.