Can send mail to but not from my Postfix server
I can send email from my gmail account to
Since I can successfully send emails to
The following line is from my /var/log/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 <
Any help would be appreciated.
19 Replies
…
> We provide an e-mail based record tester. Send an e-mail to
After, please post the resulting diagnostic / header / log information here, it would make things easier to troubleshoot.
@joe:
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=
Take my advice with a grain of salt, but that looks like you were sending an email to
The actual domain name would really help the folks here.
I can send emails to
$ mutt -f imaps://
The 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://
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 <
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
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: dictnisinit: 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 <
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]
MYDOMAIN.COM is jhesse.com. I own it and it points to a Linode server.
I think the dns is ok.
Your Linode server does these kinds of lookups to ensure a spammer doesn't use just any random, non-existent domain as the sender address (granted, you can configure your server to skip these checks, but I would recommend against that).
In essence you've configured your e-mail client (the one you're trying to send e-mail from) to use an invalid sender address, which is why the message is being rejected.
I am only using my laptop for the email client software on the computer, mutt in this case. Think of running the Thunderbird email client on a laptop. You can send gmail from Thunderbird so it comes from the gmail SMTP server and goes to wherever you send it.
I want the same thing here with mutt as the email client. I want the email to come from my SMTP server and to go wherever I choose. I either am not using mutt properly or my SMTP is not configured properly.
> For example, suppose that your domain example.com uses Gmail. You create an SPF record that identifies the Google Apps mail servers as the authorized mail servers for your domain. When a recipient's mail server receives a message from
^There's a reason I suggested you try using the SPF checker…
If you're trying to test by sending an email to your gmail as a test, it's almost certainly guaranteed to bounce if your postfix server is sending out bogus email addresses without a valid SPF configuration.
Edited to add:
Technically, this text I'm quoting applies to google apps (email hosting using google as the provider) but my point was that the gmail / google mail servers will check SPF configuration when you send a mail to any google-hosted email address or domain.
@joe:
((…snip…))
I either am not using mutt properly or my SMTP is not configured properly.
Correct. You're not sending correctly (probably because mutt is configured wrong)
Would you mind posting the relevant section of your ~/.muttrc configuration file?
(minus the passwords, for obvious reasons.)
Edited again:
Actually, I think I already see your issue:
instead of:
set smtp_url="smtp://joe@MYDOMAIN.COM@mail.MYDOMAIN.COM"
try like this:
set smtp_pass= your password goes here
set smtp_url = "smtp://mail.MYDOMAIN.COM"
set from="joe@MYDOMAIN.COM"
set realname="joe surname"
/usr/sbin/sendmail -t -i <
Use an e-mail address that you or a friend control in the To: line.
If this works, it's just a matter of getting your e-mail client to properly submit mail.
Contents of .muttrc
set smtp_pass="redacted"
set smtp_url="smtp://mail.jhesse.com"
set from="
set realname="joe hesse"
=============================
Error message from mutt
SMTP session failed: 554 5.7.1 <
=============================
Tail of /var/log/maillog
Nov 7 07:11:27 mail postfix/anvil[3637]: statistics: max connection rate 1/60s for (smtp:24.118.254.66) at Nov 7 07:08:05
Nov 7 07:11:27 mail postfix/anvil[3637]: statistics: max connection count 1 for (smtp:24.118.254.66) at Nov 7 07:08:05
Nov 7 07:11:27 mail postfix/anvil[3637]: statistics: max cache size 1 at Nov 7 07:08:05
Nov 7 07:17:58 mail postfix/smtpd[3684]: warning: dictnisinit: NIS domain name not set - NIS lookups disabled
Nov 7 07:17:58 mail postfix/smtpd[3684]: connect from c-24-118-254-66.hsd1.mn.comcast.net[24.118.254.66]
Nov 7 07:18:00 mail postfix/smtpd[3684]: NOQUEUE: reject: RCPT from c-24-118-254-66.hsd1.mn.comcast.net[24.118.254.66]: 554 5.7.1 <
Nov 7 07:18:00 mail postfix/smtpd[3684]: disconnect from c-24-118-254-66.hsd1.mn.comcast.net[24.118.254.66]
Nov 7 07:21:20 mail postfix/anvil[3686]: statistics: max connection rate 1/60s for (smtp:24.118.254.66) at Nov 7 07:17:58
Nov 7 07:21:20 mail postfix/anvil[3686]: statistics: max connection count 1 for (smtp:24.118.254.66) at Nov 7 07:17:58
Nov 7 07:21:20 mail postfix/anvil[3686]: statistics: max cache size 1 at Nov 7 07:17:58
-Nathan
@Stever:
IMHO setting up and using SASL auth would be a better way to handle this than adding a presumably dynamic IP to mynetworks.
I agree. I started out doing just that..keeping up with my dynamic ip and updating it in mynetworks however, using sasl is much more secure.
It's pretty easy to do. There should be info in the linode library. If not post here and I will give you a quick howto.
Fred-