Eternal Postfix Battle
Posted about 1 year ago
My war with Postfix wages on. However I have resolved an issue that has been haunting my email server for quite some time now!
I constantly received a mail loop error when postmaster notifications were being sent to mail.skiblerspot.net. I knew it was something simple but never spent the time to track down what was missing. Perhaps I made the assumption that if Postfix knows to accept mail for skiblerspot.net it will automatically accept mail for mail.skiblerspot.net. This is an incorrect assumption and rightly so as this would be a terrible feature.
My problem was solved by simply changing:
mydestination = localhost, localhost.localdomain
to
mydestination = localhost, localhost.localdomain skiblerspot mail.skiblerspot.net
Adding skiblerspot was unnecessary to fix my immediate issue but I figured it doesn't hurt. Notice that I could have also added mail.skiblerspot.net to my virtual mail boxes database. I think in my case adding the hostname to mydestination is a better solution. Though if I were expecting mail for other users and wanted to create aliases for this domain I would then add it to virtual mail box database instead. Note that a domain should NEVER be in both places (mydestination and virtual mail box database).
This page notes on postfix configuration helped me realize my mistake.
Sean



