Only accept mail for host.domain.com and not domain.com

Before I begin I am running postfix/pop3. I have a domain registered and have setup an mx handler for the domain. My question is email gets through to user@host.domain.com but when mail is sent to user@domain.com it wont get through. Is there something special I need to do to be able to have user@domain.com work?

Thanks

Jamie

1 Reply

Check the setting of postfix's mydestination parameter:

fremont postfix # postconf | grep ^mydestination
mydestination = $mydomain $myhostname localhost.$mydomain localhost

My guess is that your mydestination parameter is still set to the install default:@/etc/postfix/main.cf:

The default is $myhostname + localhost.$mydomain. On a mail domain

gateway, you should also include $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