What I want to do is send and receive email from
joe@MYDOMAIN.COM just like I send and receive email from a gmail account.
I can send emails to
joe@MYDOMAIN.COM from my gmail account. I use Thunderbird to send the message. I easily read the email with mutt. I can't read the email with Thunderbird since the latest release of Thunderbird can't be configured to work with mail.MYDOMAIN.com and self-signed certificates. Just for the record, I read the email with:
$ mutt -f
imaps://joe@MYDOMAIN.COM@mail.MYDOMAIN.COMThe problem is that I can't send emails so they come from joe@MYDOMAIN and go to my gmail account. I try to do this with mutt and the following line in .muttrc.
set smtp_url="smtp://joe@MYDOMAIN.COM@mail.MYDOMAIN.COM"
When I try to send an email to my gmail account, I am prompted for a password and then I get the error message:
"SMTP session failed: 450 4.1.8 <joe@AsusLaptop.hsd1.mn.comcast.net>: Sender address rejected: Domain not found"
The comcast.net stuff above is from my ISP and I am using a laptop behind a router.
Here are the entries in /var/log/maillog dealing with sending email from
joe@MYDOMAIN.COM.
Nov 6 04:21:04 mail postfix/anvil[3241]: statistics: max connection rate 1/60s for (smtp:209.85.223.174) at Nov 6 04:17:10
Nov 6 04:21:04 mail postfix/anvil[3241]: statistics: max connection count 1 for (smtp:209.85.223.174) at Nov 6 04:17:10
Nov 6 04:21:04 mail postfix/anvil[3241]: statistics: max cache size 1 at Nov 6 04:17:10
Nov 6 04:21:21 mail postfix/smtpd[3302]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Nov 6 04:21:21 mail postfix/smtpd[3302]: connect from c-24-118-254-66.hsd1.mn.comcast.net[24.118.254.66]
Nov 6 04:21:26 mail dovecot: auth: mysql: Connected to 127.0.0.1 (mail)
Nov 6 04:21:26 mail postfix/smtpd[3302]: NOQUEUE: reject: RCPT from c-24-118-254-66.hsd1.mn.comcast.net[24.118.254.66]: 450 4.1.8 <joe@AsusLaptop.hsd1.mn.comcast.net>: Sender address rejected: Domain not found; from=<joe@AsusLaptop.hsd1.mn.comcast.net> to=<joe@MYDOMAIN.COM> proto=ESMTP helo=<AsusLaptop.hsd1.mn.comcast.net>
Nov 6 04:21:26 mail postfix/smtpd[3302]: lost connection after RCPT from c-24-118-254-66.hsd1.mn.comcast.net[24.118.254.66]
Nov 6 04:21:26 mail postfix/smtpd[3302]: disconnect from c-24-118-254-66.hsd1.mn.comcast.net[24.118.254.66]
Nov 6 04:22:21 mail postfix/smtpd[3255]: timeout after END-OF-MESSAGE from localhost[127.0.0.1]
Nov 6 04:22:21 mail postfix/smtpd[3255]: disconnect from localhost[127.0.0.1]