Local Forwader to mandrill
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
-
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. 0 -
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 <= sender@domain.com 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=t6XRDpzYYtm-z1-d7eZgjx9GOzkD+o0-Ang@mail.gmail.com T="test" for target@targetdomain.com 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=target@targetdomain.com E=sender@domain.com 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=target@targetdomain.com 2020-04-19 20:26:49 1jQKGs-00071D-Se SMTP connection outbound 1587342409 1jQKGs-00071D-Se targetdomain.com sender@domain.com 2020-04-19 20:26:49 1jQKGs-00071D-Se => target R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 +fhTKEnsnF66ZwAA96fKiQ Saved" 2020-04-19 20:26:50 1jQKGs-00071D-Se => sender@domain.com (target@targetdomain.com) 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. 0 -
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: There's also the following: Where did you get the configuration for mandrill? 0 -
no error or rejection from mandrill. it seems it wont attempt either. It uses the local or host sender instead of mandrill.. 0
Please sign in to leave a comment.
Comments
4 comments