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=27)
-   -   Mail configuration question (http://www.howtoforge.com/forums/showthread.php?t=44813)

wowwen 12th April 2010 03:51

Mail configuration question
 
Hello again.

Iam a bit confused about my setup and i need some suggestions.

Iam using ISP Config for handling a few domains. One of my domain, i use an external mailserver for my mail which is working with no problem at all. But now i have encounter a small trouble. On the same domain, i use a webbased script which sends mail to a specified mailadress at the same domain. But when i do this, the mail doesnt go to the external mailserver, it goes to the local one. Ive created an identical address on the ispconfig server and when i manually connects to that account, all my mails that are generated through my script are here. So, it seems like the mail doesnt read the domain mx record when i send a mail from Ispconfig smtp.

Is there anyway i can solve this?

falko 12th April 2010 15:10

Please delete the mail domain in ISPConfig, and the mails will go to the other server.

wowwen 12th April 2010 16:44

Hello.

Thanks for the quick response.

I have now tried to delete the email domain with success, but now the mails get stuck in the mail queue.

Do i need to restart anything for the changes to take place?

When i look at the queue now i see the following

mail for mydomain.com loops back to myself

till 12th April 2010 19:35

Looks as if you used mydomain.com as hostname for the server. You can not use a email domain as hostname for a postfix mailserver. Please change mydomain.com in postfix main.cf to something like server1.mydomain.com and restart postfix.

wowwen 12th April 2010 20:27

That was what i thought to, but when i check my config the server name is:
ns1.mydomain.com, and this is also the server hostname.

The email server iam trying to reach is mail.mydomain.com which points to an other server.

till 12th April 2010 23:13

Please post the contents of the poastfix main.cf file, comments stripped.


All times are GMT +2. The time now is 17:33.

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