HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Squirrelmail - SMTP problems (http://www.howtoforge.com/forums/showthread.php?t=57695)

Spawnsworth 21st June 2012 12:33

Squirrelmail - SMTP problems
 
Hi all, hope someone can help with this.

We are an ISP running a POP3 and an IMAP server, both running Debian 5.0.3. One of our domains 'somewhere.com' has several email accounts, some of them POP3 and some of them IMAP.

user@somewhere.com (imap.server.com)
office@somewhere.com (pop3.server.com)

Squirrelmail is installed on the IMAP server, and when 'user1@somewhere.com' (IMAP) tries to send an email to 'user@somewhere.com' (POP3) they get the following error:

"Requested action not taken: mailbox unavailable
Server replied: 550 5.1.1 <office@somewhere.com>: Recipient address rejected: User unknown in virtual mailbox table"

Now, this would be happening as the 'office@' user is on the POP3 server which is external. But as there are other email accounts for 'somewhere.com' on this IMAP server, it is looking for that in the mailbox table and seeing that it doesn't exist, hence throwing up the above error.

I have tried to force squirrelmail/postfix to use an external relay server but it still appears to be sending through local host.

I have edited relayhost in main.cf and Squirrelmail config.php but to no avail. It still doesn't seem to be working.

Can someone please help with this? Please let me know if you need any more info.

Thanks!

falko 22nd June 2012 14:44

You would need to remove somewhere.com from mydestination in /etc/postfix/main.cf or create a transport that forwards emails for somewhere.com to the other server. See
Code:

man 5 transport


All times are GMT +2. The time now is 09:20.

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