Local Forwader to mandrill

Operating System & Version
CENTOS 7.7 [server]
cPanel & WHM Version
v86.0.18

edwinr

Registered
Apr 16, 2020
3
0
1
Philippines
cPanel Access Level
Root Administrator
Hi, We use the Section: PREROUTERS to route all our emails to Mandrill. Everything works except for email forwarders. It won't go to the Mandrill like the rest and it seems like bypassing or something. Please help.

mandrilldomainlrouter:
driver = manualroute
domains = !+local_domains
senders = ^.*@mydomain.com


ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : X.X.X.X (mydomain IP)
headers_add = "${perl{mailtrapheaders}}"
transport = mandrilldomain1transport
route_list = * smtp.mandrillapp.com
 
Last edited:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
What's output in the exim logs for forwarded emails? You can view them at /var/log/exim_mainlog - I'd wager this is more related to some SPF/DKIM checking mandrill does than anything.
 

edwinr

Registered
Apr 16, 2020
3
0
1
Philippines
cPanel Access Level
Root Administrator
Here logs:

2020-04-19 20:26:06 SMTP connection from [209.85.210.48]:46683 (TCP/IP connection count = 1)
2020-04-19 20:26:49 1jQKGs-00071D-Se H=mail-ot1-f48.google.com [209.85.210.48]:46683 Warning: "SpamAssassin as test1001 detected message as NOT spam (-99.9)"
2020-04-19 20:26:49 1jQKGs-00071D-Se H=mail-ot1-f48.google.com [209.85.210.48]:46683 Warning: Message has been scanned: no virus or other harmful content was found
2020-04-19 20:26:49 1jQKGs-00071D-Se <= [email protected] H=mail-ot1-f48.google.com [209.85.210.48]:46683 P=esmtps X=TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no S=7852 id=CAMz63WE9yS09wt=[email protected] T="test" for [email protected]
2020-04-19 20:26:49 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1jQKGs-00071D-Se
2020-04-19 20:26:49 SMTP connection from mail-ot1-f48.google.com [209.85.210.48]:46683 closed by QUIT
2020-04-19 20:26:49 1jQKGs-00071D-Se SMTP connection identification D=targetdomain.com O=[email protected] E=[email protected] M=1jQKGs-00071D-Se U=test1001 ID=1007 B=redirect_resolver
2020-04-19 20:26:49 1jQKGs-00071D-Se Sender identification U=test1001 D=targetdomain.com S=[email protected]
2020-04-19 20:26:49 1jQKGs-00071D-Se SMTP connection outbound 1587342409 1jQKGs-00071D-Se targetdomain.com [email protected]
2020-04-19 20:26:49 1jQKGs-00071D-Se => target <[email protected]> R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 <[email protected]> +fhTKEnsnF66ZwAA96fKiQ Saved"
2020-04-19 20:26:50 1jQKGs-00071D-Se => [email protected] ([email protected]) <[email protected]> R=dkim_lookuphost T=dkim_remote_smtp H=aspmx.l.google.com [173.194.68.26] X=TLS1.2:ECDHE-ECDSA-AES128-GCM-SHA256:128 CV=yes C="250 2.0.0 OK 1587342410 a125si17538366qkf.12 - gsmtp"
2020-04-19 20:26:50 1jQKGs-00071D-Se Completed

NOTEa: all is working well but except the email forwarder bypassing the config.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Does the mail get rejected or it just is sent from the server directly and does not go through mandrill - based on this output it looks as though it's sent without issue just directly from the server.

I think the issue may be in the senders directive you have there.

I wonder if using the settings here may be helpful: Exim configuration, to use SMTP Mandrillapp.
There's also the following: Implementing Mandrill with Exim on cPanel - The cPanel Admin

Where did you get the configuration for mandrill?