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?