User mailbox auto forwarding issue with my 8.8.15_GA new install.

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
User avatar
garfin
Posts: 8
Joined: Tue May 03, 2022 1:14 am

User mailbox auto forwarding issue with my 8.8.15_GA new install.

Post by garfin »

Hi brains trust , I'm totally new to this , please bear wiith me.

I have a User mailbox , lets call it john@mydomain.com , and i set it to forward to a couple of gmail addresses, via User-specified forwarding addresses: through the admin console , but my upstream mail relay (sendgrid) does not like the fwded emails..

in the zimbra.log , i see entries like this ..

Code: Select all

May  3 00:33:25 zcs postfix/smtp[654412]: 8CADD4600C0: to=<zimbra@mail.mydomain.com>, relay=smtp.sendgrid.net[52.220.95.193]:587, delay=2, delays=0/0.06/1.5/0.43, dsn=5.0.0, status=bounced (host smtp.sendgrid.net[52.220.95.193] said: 550 The FROM ADDRESS does not match a verified Sender Identity. Mail cannot be sent until this error is resolved. Visit https://sendgrid.com/docs/for-developers/sending-email/sender-identity/ to see the Sender Identity requirements (in reply to end of DATA command))
and i did fluke once to capture what i think is the corresponding email

Code: Select all

contents in mail FROM [127.0.0.1] <zimbra@mail.mydomain.com>

No viruses were found.
 
Content type: Unchecked
Internal reference code for the message is 652816-01/w-H8PukR-uZP
 
First upstream SMTP client IP address: [127.0.0.1]
 
Received trace: x
 
Return-Path: <zimbra@mail.mydomain.com>
From: root@mail.mydomain.com (Cron Daemon)
Message-ID: <20220503003312.7FF7A4600BE@mail.mydomain.com>
Subject: Cron <zimbra@zcs> /opt/zimbra/libexec/zmqueuelog
Not quarantined.
 
The message WILL BE relayed to:
<zimbra@mail.mydomain.com>
from what i can gather.. it seems to be forwarding/relaying using user@mail.mydomain.com , rather than user@mydomain.com
User normal emails that they compose and send, go out as user@mydomain.com and work fine... its just some of these system emails, and when using an external User-specified forwarding address in mailbox /accounts/forwarding in the admin console.

Help please,
Regards GarF
Last edited by garfin on Wed May 11, 2022 10:39 pm, edited 1 time in total.
User avatar
garfin
Posts: 8
Joined: Tue May 03, 2022 1:14 am

Re: User mailbox auto forwarding issue with my 8.8.15_GA new install.

Post by garfin »

Today's daily mail report, showing an zimbra@mail.mydomain.com issue..
------ Forwarded Message ------
From: admin@mydomain.com
To: admin@mydomain.com
Sent: 4/05/2022 9:30:21 AM
Subject: Daily mail report for 2022-05-03

 

Host/Domain Summary: Messages Received (top 50)
-----------------------------------------------
msg cnt bytes host/domain
-------- ------- -----------
27 493890 mydomain.com
...
1 649 mail.mydomain.com
 
top 50 Senders by message count
-------------------------------
26 phones@mydomain.com
...
1 zimbra@mail.mydomain.com
1 radarr@mydomain.com

 
top 50 Recipients by message count
----------------------------------
38 aiden@mydomain.com
24 phones@mydomain.com
10 john@mydomain.com
6 gary@mydomain.com
6 joshua@mydomain.com
6 michelle@mydomain.com
2 jessica@mydomain.com
1 admin@mydomain.com
1 zimbra@mail.mydomain.com
 
top 50 Senders by message size
------------------------------
492990 phones@mydomain.com
...
900 radarr@mydomain.com
649 zimbra@mail.mydomain.com
 
top 50 Recipients by message size
---------------------------------
2676k aiden@mydomain.com
584k phones@mydomain.com
565k michelle@mydomain.com
442124 gary@mydomain.com
232582 john@mydomain.com
230400 joshua@mydomain.com
49193 jessica@mydomain.com
2158 admin@mydomain.com
649 zimbra@mail.mydomain.com
 
message deferral detail: none
Last edited by garfin on Thu May 12, 2022 12:09 am, edited 1 time in total.
User avatar
L. Mark Stone
Ambassador
Ambassador
Posts: 2796
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 10.0.6 Network Edition
Contact:

Re: User mailbox auto forwarding issue with my 8.8.15_GA new install.

Post by L. Mark Stone »

The Sendgrid article referenced in your first post should help you meet the requirements to have your emails be delivered.
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
User avatar
garfin
Posts: 8
Joined: Tue May 03, 2022 1:14 am

Re: User mailbox auto forwarding issue with my 8.8.15_GA new install.

Post by garfin »

Thanks , but i dont believe its that simple.. @mail.mydomain.com is not a valid registered domainname - and the SendGrid verification email they send, to set those accounts up, does not make its way back to my system , let alone it not having zimbra mailboxes for root@mail.mydomain.com , or zimbra@ mail.mydomain.com (i could make mailboxes for root@mydomain.com and zimbra@mydomain.com .. just not @mail.mydomain.com)

It's almost like somewhere, in a config, or hardcode , it is using the postfix '$myhostname = ' variable , rather than '$mydomain =' , but only for some system generated emails (not user composed and sent..)


*Edit*
Ok, so after discovering the Domain Alias setting in Zimbra, i thought i would try...
1. Registered mail.mydomain.com domain name.
2. created the neccesary MX record, back to the zimbra server.
3. Setup a domain alias on the zimbra server , aliasing @mail.mydomain.com to @mydomain.com ..
4. I've then created 2 user mailboxes , zimbra@mydomain.com and root@mydomain.com .. that seems to have taken care of that. I was able to retrieve the validation emails for zimbra@mail.mydomain.com and root@mail.mydomain.com sent by the sendgrid validation process. (its a wait and see for the next 'system email' to be sent out..)


Meanwhile, while i wait.. I've also created a 'User-specified forwarding address' of john@gmail.com , for the user mailbox john@mydomain.com (with the intention of, anything being sent to john@mydomain.com, gets forwarded to john@gmail.com) I've also created a single user sender and verified it in sendgrid , against the account john@mail.mydomain.com , as well as for john@mydomain.com .

Result: If i send an email to john@mydomain.com , from another user@mydomain.com , then the forwarding rule works .. and BOTH john@mydomain.com and john@gmail.com both get a copy of the email (as expected.)
..but..
If the sender is an external email account (yahoo,gmail or other) , then only john@mydomain.com gets a copy of the email.. the forwarding fails and zimbra.log shows this.

Code: Select all

May  5 06:29:30 zcs postfix/postscreen[2965747]: CONNECT from [66.163.191.146]:46666 to [192.168.1.25]:25
May  5 06:29:36 zcs postfix/postscreen[2965747]: PASS NEW [66.163.191.146]:46666
May  5 06:29:36 zcs postfix/smtpd[2965750]: connect from sonic304-20.consmr.mail.ne1.yahoo.com[66.163.191.146]
May  5 06:29:37 zcs postfix/smtpd[2965750]: Anonymous TLS connection established from sonic304-20.consmr.mail.ne1.yahoo.com[66.163.191.146]: TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256
May  5 06:29:37 zcs postfix/smtpd[2965750]: NOQUEUE: filter: RCPT from sonic304-20.consmr.mail.ne1.yahoo.com[66.163.191.146]: <external@yahoo.com.au>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10026; from=<external@yahoo.com.au> to=<john@mydomain.com> proto=ESMTP helo=<sonic304-20.consmr.mail.ne1.yahoo.com>
May  5 06:29:37 zcs postfix/smtpd[2965750]: warning: permit_tls_clientcerts is requested, but "smtpd_tls_ask_ccert = no"
May  5 06:29:37 zcs postfix/smtpd[2965750]: NOQUEUE: filter: RCPT from sonic304-20.consmr.mail.ne1.yahoo.com[66.163.191.146]: <external@yahoo.com.au>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10024; from=<external@yahoo.com.au> to=<john@mydomain.com> proto=ESMTP helo=<sonic304-20.consmr.mail.ne1.yahoo.com>
May  5 06:29:38 zcs postfix/smtpd[2965750]: 2AAD64601E4: client=sonic304-20.consmr.mail.ne1.yahoo.com[66.163.191.146]
May  5 06:29:38 zcs postfix/cleanup[2965880]: 2AAD64601E4: message-id=<em676e46cf-4fb4-4a13-a838-5cbba108bc0f@w2012r2ts1>
May  5 06:29:38 zcs postfix/qmgr[2926394]: 2AAD64601E4: from=<external@yahoo.com.au>, size=5705, nrcpt=2 (queue active)
May  5 06:29:38 zcs amavis[2926074]: (2926074-01) ESMTP [127.0.0.1]:10024 /opt/zimbra/data/amavisd/tmp/amavis-20220505T062938-2926074-tqJdabcq: <external@yahoo.com.au> -> <john@mydomain.com>,<john@gmail.com> SIZE=5705 Received: from mail.mydomain.com ([127.0.0.1]) by localhost (mail.mydomain.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP; Thu,  5 May 2022 06:29:38 +0000 (UTC)
May  5 06:29:38 zcs amavis[2926074]: (2926074-01) dkim: VALID Author+Sender+MailFrom signature by d=yahoo.com.au, From: <external@yahoo.com.au>, a=rsa-sha256, c=relaxed/relaxed, s=s2048, i=@yahoo.com.au
May  5 06:29:38 zcs amavis[2926074]: (2926074-01) Checking: Ulyz1uDTUkHq [66.163.191.146] <external@yahoo.com.au> -> <john@mydomain.com>,<john@gmail.com>
May  5 06:29:38 zcs amavis[2926074]: (2926074-01) Open relay? Nonlocal recips but not originating: john@gmail.com
May  5 06:29:38 zcs amavis[2926074]: (2926074-01) p003 1 Content-Type: multipart/alternative
May  5 06:29:38 zcs amavis[2926074]: (2926074-01) p001 1/1 Content-Type: text/plain, size: 30 B, name:
May  5 06:29:38 zcs amavis[2926074]: (2926074-01) p002 1/2 Content-Type: text/html, size: 569 B, name:
May  5 06:29:38 zcs postfix/smtpd[2965750]: disconnect from sonic304-20.consmr.mail.ne1.yahoo.com[66.163.191.146] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
May  5 06:29:39 zcs zmconfigd[2923901]: Fetching All configs
May  5 06:29:39 zcs zmconfigd[2923901]: All configs fetched in 0.04 seconds
May  5 06:29:39 zcs amavis[2965903]: (2926074-01) SA info: util: setuid: ruid=997 euid=997 rgid=998 5 997 998 egid=998 5 997 998
May  5 06:29:43 zcs amavis[2926074]: (2926074-01) spam-tag, <external@yahoo.com.au> -> <john@mydomain.com>, No, score=-0.917 required=4 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, DMARC_PASS_REJECT=-1.2, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, REPTO_QUOTE_YAHOO=0.49, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled
May  5 06:29:43 zcs postfix/amavisd/smtpd[2957068]: connect from localhost[127.0.0.1]
May  5 06:29:43 zcs postfix/amavisd/smtpd[2957068]: 2474C4601E6: client=localhost[127.0.0.1]
May  5 06:29:43 zcs postfix/cleanup[2965880]: 2474C4601E6: message-id=<em676e46cf-4fb4-4a13-a838-5cbba108bc0f@w2012r2ts1>
May  5 06:29:43 zcs postfix/qmgr[2926394]: 2474C4601E6: from=<external@yahoo.com.au>, size=6645, nrcpt=1 (queue active)
May  5 06:29:43 zcs amavis[2926074]: (2926074-01) Ulyz1uDTUkHq FWD from <external@yahoo.com.au> -> <john@mydomain.com>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2474C4601E6
May  5 06:29:43 zcs postfix/amavisd/smtpd[2957068]: 268504601E8: client=localhost[127.0.0.1]
May  5 06:29:43 zcs postfix/cleanup[2965880]: 268504601E8: message-id=<em676e46cf-4fb4-4a13-a838-5cbba108bc0f@w2012r2ts1>
May  5 06:29:43 zcs postfix/qmgr[2926394]: 268504601E8: from=<external@yahoo.com.au>, size=6124, nrcpt=1 (queue active)
May  5 06:29:43 zcs amavis[2926074]: (2926074-01) Ulyz1uDTUkHq FWD from <external@yahoo.com.au> -> <john@gmail.com>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 268504601E8
May  5 06:29:43 zcs amavis[2926074]: (2926074-01) Passed CLEAN {RelayedInbound,RelayedOpenRelay}, [66.163.191.146]:46666 [66.163.191.146] <external@yahoo.com.au> -> <john@mydomain.com>,<john@gmail.com>, Queue-ID: 2AAD64601E4, Message-ID: <em676e46cf-4fb4-4a13-a838-5cbba108bc0f@w2012r2ts1>, mail_id: Ulyz1uDTUkHq, Hits: -0.917, size: 5702, queued_as: 2474C4601E6/268504601E8, dkim_sd=s2048:yahoo.com.au, 4582 ms
May  5 06:29:43 zcs amavis[2926074]: (2926074-01) TIMING-SA [total 4383 ms, cpu 390 ms] - parse: 2.3 (0.1%), extract_message_metadata: 37 (0.9%), get_uri_detail_list: 0.88 (0.0%), tests_pri_-1000: 14 (0.3%), tests_pri_-950: 1.51 (0.0%), tests_pri_-900: 1.57 (0.0%), tests_pri_-90: 1.21 (0.0%), tests_pri_0: 391 (8.9%), check_spf: 281 (6.4%), poll_dns_idle: 3223 (73.5%), tests_pri_10: 1.50 (0.0%), tests_pri_20: 437 (10.0%), check_razor2: 434 (9.9%), tests_pri_30: 475 (10.8%), check_pyzor: 469 (10.7%), tests_pri_500: 2990 (68.2%), get_report: 0.71 (0.0%)
May  5 06:29:43 zcs postfix/smtp[2965881]: 2AAD64601E4: to=<john@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.5, delays=0.85/0.01/0.01/4.6, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2474C4601E6)
May  5 06:29:43 zcs postfix/smtp[2965881]: 2AAD64601E4: to=<john@gmail.com>, orig_to=<john@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.5, delays=0.85/0.01/0.01/4.6, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2474C4601E6)
May  5 06:29:43 zcs postfix/qmgr[2926394]: 2AAD64601E4: removed
May  5 06:29:43 zcs amavis[2926074]: (2926074-01) size: 5702, TIMING [total 4618 ms, cpu 509 ms, AM-cpu 119 ms, SA-cpu 390 ms] - ldap-prepare: 6 (0%)0, SMTP greeting: 3.4 (0%)0, SMTP EHLO: 1.3 (0%)0, SMTP pre-MAIL: 1.0 (0%)0, mkdir tempdir: 1.3 (0%)0, create email.txt: 0.3 (0%)0, ldap-connect: 35 (1%)1, lookup_ldap: 4.6 (0%)1, lookup_ldap: 2.1 (0%)1, SMTP pre-DATA-flush: 1.1 (0%)1, SMTP DATA: 0.5 (0%)1, check_init: 0.4 (0%)1, digest_hdr: 4.4 (0%)1, digest_body_dkim: 15 (0%)2, collect_info: 2.8 (0%)2, mkdir parts: 1.3 (0%)2, mime_decode: 10 (0%)2, get-file-type2: 8 (0%)2, parts_decode: 0.3 (0%)2, check_header: 0.6 (0%)2, AV-scan-1: 34 (1%)3, spam-wb-list: 1.7 (0%)3, SA msg read: 0.5 (0%)3, SA parse: 3.7 (0%)3, SA check: 4365 (95%)98, decide_mail_destiny: 30 (1%)98, notif-quar: 0.4 (0%)98, fwd-connect: 14 (0%)98, fwd-mail-pip: 5 (0%)99, fwd-rcpt-pip: 0.2 (0%)99, fwd-data-chkpnt: 0.0 (0%)99, write-header: 0.6 (0%)99, fwd-data-contents: 0.1 (0%)99, fwd-end-chkpnt: 2.7 (0%)99, fwd-connect: 1.8 (0%)99, fw...
May  5 06:29:43 zcs amavis[2926074]: (2926074-01) ...d-mail-pip: 3.0 (0%)99, fwd-rcpt-pip: 0.1 (0%)99, fwd-data-chkpnt: 0.0 (0%)99, write-header: 0.5 (0%)99, fwd-data-contents: 0.1 (0%)99, fwd-end-chkpnt: 2.4 (0%)99, prepare-dsn: 2.5 (0%)99, report: 7 (0%)99, main_log_entry: 20 (0%)100, update_snmp: 19 (0%)100, SMTP pre-response: 0.6 (0%)100, SMTP response: 0.2 (0%)100, unlink-3-files: 1.6 (0%)100, rundown: 1.3 (0%)100
May  5 06:29:43 zcs amavis[2926074]: (2926074-01) size: 5702, RUSAGE minflt=16219+3077, majflt=0+0, nswap=0+0, inblock=0+0, oublock=8+0, msgsnd=0+0, msgrcv=0+0, nsignals=0+0, nvcsw=54+6, nivcsw=66+49, maxrss=196064+186376, ixrss=0+0, idrss=0+0, isrss=0+0, utime=0.325+0.098, stime=0.059+0.027
May  5 06:29:43 zcs amavis[2926074]: (2926074-01) extra modules loaded: Mozilla/CA.pm
May  5 06:29:43 zcs postfix/lmtp[2966030]: 2474C4601E6: to=<john@mydomain.com>, relay=mail.mydomain.com[192.168.1.25]:7025, delay=0.15, delays=0.01/0.03/0.04/0.08, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)
May  5 06:29:43 zcs postfix/qmgr[2926394]: 2474C4601E6: removed
May  5 06:29:43 zcs zmconfigd[2923901]: Command not defined for imapd
May  5 06:29:44 zcs /postfix-script[2966143]: the Postfix mail system is running: PID: 2926391
May  5 06:29:45 zcs postfix/smtp[2966031]: 268504601E8: to=<john@gmail.com>, relay=smtp.sendgrid.net[13.114.210.107]:587, delay=1.9, delays=0/0.07/1.2/0.59, dsn=5.0.0, status=bounced (host smtp.sendgrid.net[13.114.210.107] said: 550 The from address does not match a verified Sender Identity. Mail cannot be sent until this error is resolved. Visit https://sendgrid.com/docs/for-developers/sending-email/sender-identity/ to see the Sender Identity requirements (in reply to end of DATA command))
May  5 06:29:45 zcs postfix/cleanup[2965880]: 0C3BF4601E9: message-id=<20220505062945.0C3BF4601E9@mail.mydomain.com>
May  5 06:29:45 zcs postfix/qmgr[2926394]: 0C3BF4601E9: from=<>, size=8539, nrcpt=1 (queue active)
May  5 06:29:45 zcs postfix/bounce[2966244]: 268504601E8: sender non-delivery notification: 0C3BF4601E9
May  5 06:29:45 zcs postfix/qmgr[2926394]: 268504601E8: removed
May  5 06:29:45 zcs zmconfigd[2923901]: Watchdog: service antivirus status is OK.
May  5 06:29:45 zcs zmconfigd[2923901]: All rewrite threads completed in 0.00 sec
May  5 06:29:45 zcs zmconfigd[2923901]: All restarts completed in 0.00 sec
May  5 06:29:46 zcs postfix/smtp[2966031]: 0C3BF4601E9: to=<external@yahoo.com.au>, relay=smtp.sendgrid.net[52.220.95.193]:587, delay=1.9, delays=0.01/0/1.5/0.45, dsn=5.0.0, status=bounced (host smtp.sendgrid.net[52.220.95.193] said: 550 The from address does not match a verified Sender Identity. Mail cannot be sent until this error is resolved. Visit https://sendgrid.com/docs/for-developers/sending-email/sender-identity/ to see the Sender Identity requirements (in reply to end of DATA command))
May  5 06:29:46 zcs postfix/qmgr[2926394]: 0C3BF4601E9: removed

zimbra@zcs:~$
Which is still complaining about the from address, but zimbra.log is not showing what the from address actually is .. (or is it? )

Code: Select all

May  5 06:29:45 zcs postfix/qmgr[2926394]: 0C3BF4601E9: from=<>, size=8539, nrcpt=1 (queue active)
Is the forwarding (externally) somehow stripping the from address totally ? Is THAT my issue ? Is there a way to stop that from happening or hardcoding the from address as 'auto-forwarded@mydomain.com' for example?
Last edited by garfin on Thu May 12, 2022 12:10 am, edited 1 time in total.
User avatar
L. Mark Stone
Ambassador
Ambassador
Posts: 2796
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 10.0.6 Network Edition
Contact:

Re: User mailbox auto forwarding issue with my 8.8.15_GA new install.

Post by L. Mark Stone »

I think you need to get Sendgrid involved directly, and let them tell you why they are rejecting the forward.

In my experience, forwarding is something to be avoided. When a spammer forges a From: address and delivery fails, the legitimate user gets the bounce message. This bounce message is then forwarded.

When an account is the target of a spammer, all of the spam that gets through then gets forwarded.

Both scenarios often result in the system at the receiving end of the forward blocklisting your domain and/or IP address, through no fault of your own.

Google and others recommend that you configure the Gmail account to pull email from the account from which you are currently doing forwards to avoid these and related issues.

Hope that helps,
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
User avatar
garfin
Posts: 8
Joined: Tue May 03, 2022 1:14 am

Re: User mailbox auto forwarding issue with my 8.8.15_GA new install.

Post by garfin »

Speaking to sendgrid.. and i'm still as confused..
Postfix logs this error if users have an auto-forwarding rule set on their mailbox. (and an email , from an external party is forwarded out). However, emails composed by the user and sent , are delivered as expected.
Could you please assist in detailing what the FROM address is that you are seeing when this occurs. You can send a test email to john@mydomain.com (a test account i created), whom has an forwarding rule set to my gmail account.
Thank you for reaching out to Twilio SendGrid Support. My name is Andi and it would be my pleasure to help you.
I checked your recent activity and I was able to identify the next domains that were used when that error has been thrown:

gmail.com
sendgrid.com
dxc.com
yahoo.com.au
mail.mydomain.com

and the authenticated domain on your account is mydomain.com. Please notice that every domain that you want to use will need to be authenticated, otherwise our servers will keep dropping them.

Sounds like the forwarding that zimbra is doing , is not forwarding as the FROM: john@mydomain.com , where the forwarding rule is set , but instead almost relay-like forwarding as the orginal sender?
User avatar
L. Mark Stone
Ambassador
Ambassador
Posts: 2796
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 10.0.6 Network Edition
Contact:

Re: User mailbox auto forwarding issue with my 8.8.15_GA new install.

Post by L. Mark Stone »

There’s a difference between Forward and Redirect, which has implications regarding the Envelope From address and the From address in the Header.

The Envelope From address and the Header From address are not always identical.

It’s not clear if Sendgrid is triggering on the Envelope or the Header.

Keep working with Sendgrid, and post progress here so we can help fill in the blanks.
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
User avatar
garfin
Posts: 8
Joined: Tue May 03, 2022 1:14 am

Re: User mailbox auto forwarding issue with my 8.8.15_GA new install.

Post by garfin »

Will do.. in the meantime, i can say with certainty, that running a small linux desktop distro with Thunderbird installed, hooked into the john@mydomain.com mailbox, and having it with a 'mailbox filter' that is doing the forwarding of new emails , to the gmail accounts is working. (ensuring the linux machine is always up and thurnderbird running, to perform that task, though , is not the preferred way forward, so hopefully we can get to the bottom of this. Have updated the sendgrid support ticket with your observation/question.)

Thanks.
User avatar
garfin
Posts: 8
Joined: Tue May 03, 2022 1:14 am

Re: User mailbox auto forwarding issue with my 8.8.15_GA new install.

Post by garfin »

Urgh.. still going around in circles..
Hi there,

As per your request, I sent you a test to verify how the email is forwarded to your Gmail address. Unfortunately, because this forward is happening outside of SendGrid, I can't see what's going on, and you'll have to investigate this on your side.
Any mail forwarding rules would likely be put in place by your systems administrator within another internal system, not the SendGrid dashboard. This would be setup in your email client or at a higher level by a systems administrator.

I hope this helps! If you need further assistance or have any questions, feel free to reach back out to us and we'd be happy to help!

Best regards,



Stefan R. | Twilio SendGrid
So, their test email did get forwarded correctly , but that would be because their test spoofed mydomain.com i assume ??

Code: Select all

Return-Path: <bounces+25814809-6d38-john=mydomain.com@em7996.mydomain.com>
Received: from mail.mydomain.com (LHLO mail.mydomain.com) (192.168.1.25)
 by mail.mydomain.com with LMTP; Tue, 10 May 2022 11:59:12 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by mail.mydomain.com (Postfix) with ESMTP id 28A944602E1
	for <john@mydomain.com>; Tue, 10 May 2022 11:59:12 +0000 (UTC)
X-Virus-Scanned: amavisd-new at mydomain.com
X-Spam-Flag: NO
X-Spam-Score: 0.483
X-Spam-Level:
X-Spam-Status: No, score=0.483 required=4 tests=[DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	DMARC_PASS_NONE=-0.6, HTML_IMAGE_ONLY_24=1.282, HTML_MESSAGE=0.001,
	RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	T_REMOTE_IMAGE=0.01, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001]
	autolearn=disabled
Authentication-Results: mail.mydomain.com (amavisd-new);
	dkim=pass (2048-bit key) header.d=mydomain.com
Received: from mail.mydomain.com ([127.0.0.1])
	by localhost (mail.mydomain.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id B0seQeIqlPdd; Tue, 10 May 2022 11:59:08 +0000 (UTC)
Received: from o2.lv1nn.shared.sendgrid.net (o2.lv1nn.shared.sendgrid.net [167.89.100.176])
	by mail.mydomain.com (Postfix) with ESMTPS id BF90B460172
	for <john@mydomain.com>; Tue, 10 May 2022 11:59:06 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mydomain.com;
	h=content-type:from:mime-version:subject:to;
	s=s1; bh=DZIog3JSsxB0lneAkIw6WtNFgQmKf+x5gUi/sEkEI2c=;
	b=xsUehQaH9OqFXTBxyuUhCibS/8kAOry6HpZn02+ZqdP08pt7Uk640VRGO+81me0t47LO
	bITXopV7DvF8KSsFa+19sYWiTCr0KVT1NUG0kpFHKxeA7LOMagx8p7gpn9p1a6p2RdtEVj
	Oqr53os68ks1zCnXoarsq591Lvw586sKhAzZxE+2eVa5hMxC8AAnCBNeKqdEBOGcjbdX0l
	PZc8wviu37RvVQ8jf7GoeH+VVbQdJf0xFumcyXVGXwrzu+cI655P5PJ5qgX4P8xcfT+hAd
	3HNrgLnPaJCT/Nu12vxV+UBViyZJbyEBZpgK75ZRRhEXNsmt2FCQaVGjmGw7lGIw==
Received: by filterdrecv-57fb89798f-fv2lr with SMTP id filterdrecv-57fb89798f-fv2lr-1-627A5383-2C
        2022-05-10 11:58:59.331616626 +0000 UTC m=+2902516.119383033
Received: from MjU4MTQ4MDk (unknown)
	by geopod-ismtpd-6-1 (SG) with HTTP
	id D_14HAJUR2i3vKN-W-dIRg
	for <john@mydomain.com>;
	Tue, 10 May 2022 11:58:59.119 +0000 (UTC)
Content-Type: multipart/alternative; boundary=840bfb1e879833385b9b064b5c875818969b480ae639d18f3bf68e185913
Date: Tue, 10 May 2022 11:58:59 +0000 (UTC)
From: testfrom@mydomain.com
Mime-Version: 1.0
Subject: A Test From SendGrid
Message-ID: <D_14HAJUR2i3vKN-W-dIRg@geopod-ismtpd-6-1>
X-SG-EID: 
 =?us-ascii?Q?Fq0jCfJClRtxOhQHUENbWZOuNBFf7DGc8c64+lssGvfAPv5f78tyeCrwwKhKNF?=
 =?us-ascii?Q?i9Nc5Rh6CdNl01GfOrZX4uPJNwwwBCsBGxmO4J6?=
 =?us-ascii?Q?CQMVmNyr1CFr=2FEeN3pCUqb4=2F1YGk+eH7u5tNgsC?=
 =?us-ascii?Q?pDtbu6gYyXleUcJ=2FZS82A6ITkAGSyawxna47gMZ?=
 =?us-ascii?Q?EtyDZvekuUuWyklkdMspwOol3zLBJsGugsw=3D=3D?=
To: john@mydomain.com
X-Entity-ID: LD/B/EczxfTZozm0KL9Clw==

Attachments
Capture.JPG
Capture.JPG (72.11 KiB) Viewed 3664 times
User avatar
garfin
Posts: 8
Joined: Tue May 03, 2022 1:14 am

Re: User mailbox auto forwarding issue with my 8.8.15_GA new install.

Post by garfin »

What i meant to ask, was could you send test email to john@mydomain.com , but from another email domain eg testuser@yahoo.com or gmail/hotmail etc.
and then see if your logs show anything more meaningful about the email rejection of the auto-forwarded email from john@mydomain.com , out to withheld@gmail.com
Andi S.Yesterday at 16:11

Hi there,

The sending domain will have to be authenticated in Sendgrid before you can use it, otherwise, as you experienced already, we will drop the email. Also, we can't see what happens with an email after the first recipient accepts it (put it in the inbox, queue it for later delivery, put it into another folder like the spam folder, forwarding, etc).

Let us know if we can help you with something else.

Best,


Andi S. | Technical Support Engineer Twilio-SendGrid

Based on what we've seen so far , there is a difference between john@mydomain.com composing and sending an email out from the webmail UI, to an external party (or indeed, an email client logged into the john@mydomain.com mailbox, with some mailbox forwarding rules) and what tries to happen when the forward is set within the webmail UI mailbox / Preferences/ Mail / Recieving Messages (where the subsequent incoming emails being forwarded were originating from external parties.)

Its a shame Sendgrid are unable or unwilling to see what that difference is , within their logging. (and given i'm on their free tier, i suspect they are not that willing to delve too deeply.)
Attachments
Capture2.JPG
Capture2.JPG (46.29 KiB) Viewed 3117 times
Capture.JPG
Capture.JPG (92.72 KiB) Viewed 3152 times
Post Reply