Strange issue with Postfix

I've been getting quite a few mails backed up in my queue from some websites that send out emails.

Here is an example of what's happening…

Jan 23 19:28:06 linode postfix/smtp[22478]: connect to yahoo.co.wa-recruitmenttracker.org[66.175.222.221]:25: Connection refused
Jan 23 19:28:06 linode postfix/smtp[22478]: B585084DC: to=<jamielynn0221@yahoo.co.wa-recruitmenttracker.org>, relay=none, delay=133795, delays=133795/0.07/0.13/0, dsn=4.4.1, status=deferred (connect to yahoo.co.wa-recruitmenttracker.org[66.175.222.221]:25: Connection refused)</jamielynn0221@yahoo.co.wa-recruitmenttracker.org> 

I was having an issue with comcast accepting email from this server, it didn't have a proper hostname, ptr, or reverse dns record. I have fixed that and we can send email to comcast now, but for some address, $mydomain get's appended to the email address.

I can't figure this out for the life of me.

Any help would be appreciated.

4 Replies

What are the contents of your /etc/postfix/main.cf ?

````

Global Postfix configuration file. This file lists only a subset

of all parameters. For the syntax, and for a complete parameter

list, see the postconf(5) manual page (command: "man 5 postconf").

commanddirectory = /usr/sbin daemondirectory = /usr/libexec/postfix
datadirectory = /var/lib/postfix inetprotocols = ipv4
unknownlocalrecipientrejectcode = 550
debugpeerlevel = 2
sendmailpath = /usr/sbin/sendmail.postfix newaliasespath = /usr/bin/newaliases.postfix
mailqpath = /usr/bin/mailq.postfix setgidgroup = postdrop
htmldirectory = no manpagedirectory = /usr/share/man
sampledirectory = /usr/share/doc/postfix-2.6.6/samples readmedirectory = /usr/share/doc/postfix-2.6.6/README_FILES
myorigin = $mydomain

````

cp main.cf main.cf-orig

Then DELETE every line that starts with a #

You'll have a nice easy to read (and parse) config file instead of the mess you just posted.

Sorry about that, it was a lot of junk, I wouldn't want to sort through that either.

command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
inet_protocols = ipv4
unknown_local_recipient_reject_code = 550
debug_peer_level = 2
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
myorigin = $mydomain

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct