View Single Post
  #3   (View Single Post)  
Old 2nd January 2019
apfelgluck apfelgluck is offline
Port Guard
 
Join Date: Sep 2016
Location: France
Posts: 12
Default

Hello jggimi.

Thanks for your quick reply.

I just created the forward file :
Code:
foo@145 [19:41:36]:~$ cat .forward
foo.bar@gmail.com
And it still does not work when foo tries to send an e-mail to himself :
Code:
foo@145 [19:43:34]:~$ echo "Message" | mail -s "Test" foo
Here is the corresponding log :
Code:
root@145 [19:46:30]:/var/log$ cat maillog
[...]
Jan  2 19:34:19 openbsd64 smtpd[64077]: 2b344296073a5b1f smtp connected address=local host=gateway_fqdn
Jan  2 19:34:19 openbsd64 smtpd[64077]: 2b344296073a5b1f smtp message address=local host=gateway_fqdn msgid=ba3a43c3 from=<foo@gateway_fqdn> to=<foo@gateway_fqdn> size=436 ndest=1 proto=ESMTP
Jan  2 19:34:19 openbsd64 smtpd[64077]: 2b344296073a5b1f smtp disconnected address=local host=gateway_fqdn reason=quit
Jan  2 19:34:19 openbsd64 smtpd[64077]: 2b34429a4400522b mta connecting address=smtp://108.177.119.27:25 host=108.177.119.27
Jan  2 19:34:19 openbsd64 smtpd[64077]: 2b34429a4400522b mta connected
Jan  2 19:34:20 openbsd64 smtpd[64077]: 2b34429a4400522b mta starttls ciphers=version=TLSv1.2, cipher=ECDHE-RSA-CHACHA20-POLY1305, bits=256
Jan  2 19:34:20 openbsd64 smtpd[64077]: smtp-out: Server certificate verification succeeded on session 2b34429a4400522b
Jan  2 19:34:20 openbsd64 smtpd[64077]: 2b34429a4400522b mta delivery evpid=ba3a43c39778862f from=<foo@gateway_fqdn> to=<foo@gateway_fqdn> rcpt=<-> source="gateway_internet_IP" relay="108.177.119.27 (108.177.119.27)" delay=1s result="PermFail" stat="550-5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces. Learn more at  https://support.google.com/mail/?p=NoSuchUser f30si8208159edc.18 - gsmtp"
Jan  2 19:34:21 openbsd64 smtpd[64077]: 2b34429be1b2e4fc smtp connected address=local host=gateway_fqdn
Jan  2 19:34:21 openbsd64 smtpd[64077]: 2b34429be1b2e4fc smtp message address=local host=gateway_fqdn msgid=86ef5e22 from=<> to=<foo@gateway_fqdn> size=2139 ndest=1 proto=ESMTP
Jan  2 19:34:21 openbsd64 smtpd[64077]: 2b34429be1b2e4fc smtp disconnected address=local host=gateway_fqdn reason=quit
Jan  2 19:34:21 openbsd64 smtpd[64077]: 2b34429a4400522b mta delivery evpid=86ef5e22e4b40c38 from=<> to=<foo@gateway_fqdn> rcpt=<-> source="gateway_internet_IP" relay="108.177.119.27 (108.177.119.27)" delay=0s result="PermFail" stat="550-5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces. Learn more at  https://support.google.com/mail/?p=NoSuchUser f30si8208159edc.18 - gsmtp"
Jan  2 19:34:21 openbsd64 smtpd[30249]: warn: queue: no return path!
Jan  2 19:34:31 openbsd64 smtpd[64077]: 2b34429a4400522b mta disconnected reason=quit messages=0
So it seems that the e-mail is not sent to Gmail with the recipient foo.bar@gmail
Reply With Quote