HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Postfix not accepting user@domain.com but is accepting user@mail.domain.com (http://www.howtoforge.com/forums/showthread.php?t=49312)

maberglund 7th October 2010 23:01

Postfix not accepting user@domain.com but is accepting user@mail.domain.com
 
Hello all!

I have postfix/ispconfig 3/centos/etc. seemingly properly configured but I am running into a problem.

I have setup an email account in the system, user@mail.domain.com

I have properly set up my dns such that I have and A record for
mail.domain.com and
domain.com

with an mx record for
mail.domain.com

So, I expect that any mail that goes to user@domain.com would be forwarded to mail.domain.com (which are on the same machine), but instead postfix returns a 550 response and kicks the email back.

Do I have to set up another email domain in ispconfig and do an alias on each user, or is there a more global way to do this? I explored the $mydestination variable in postfixs main.cf, but from my reading, it appears that the right way to adjust these sort of things on ispconfig 3 with mysql is through the ispconfig interface itself

Any help would be appreciated!

falko 8th October 2010 13:03

You have to create domain.com as a mail domain in ISPConfig and then create an alias.

maberglund 8th October 2010 18:47

Thanks falko. So, after much fiddling, the only way I got this to work was to create two domains. One domain.com and the other mail.domain.com.

Then I could make one (domain.com) and alias of the other (mail.domain.com).

Is this correct? Is seems very counterintuitive.

falko 10th October 2010 19:35

Yes, this is correct (if you want to alias all email accounts of domain.com to mail.domain.com).


All times are GMT +2. The time now is 12:51.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.