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=16)
-   -   One user can get e-mail but another can't...bizarre... (http://www.howtoforge.com/forums/showthread.php?t=30004)

cazarhosting 4th January 2009 23:56

One user can get e-mail but another can't...bizarre...
 
I'm having a rather weird problem. It may be something very small I'm overlooking, as I am as much a newbie to linux as I am to ISPConfig. Anyway...

I set up a CentOS 5.2 machine using "The Perfect Server" instructions (http://www.howtoforge.com/perfect-server-centos-5.2). Everything went pretty smoothly, and I was logged into ISPConfig in no time.

Here's a quick rundown of my configuration:

-Cable internet service w/dynamic IP address
-Wireless router uplinked to cable modem
-CentOS server box hard-wired to router via one of the standard RJ-45 ports
-Network set up on 192.168.1.0/24
-Router set up as gateway - 192.168.1.1
-Router set to use OpenDNS (208.67.222.222 / 208.67.220.220) for DNS service
-Server set up with static IP - 192.168.1.253
-Router set up with DynDNS service to always point "{my host name}.dyndns.org" to my router's current IP address.
-Router set up to "Port Forward" all standard services (FTP, HTTP, HTTPS, SMTP, POP3, VNC ports 5901-5902 and ISPConfig port 81) to the server at 192.168.1.253.

I set up a reseller account and set up two sites under that -- one for my site, and one for a friend's business. Both sites' domain names were registered with a major registrar and both sites have CNAME and MX records that point directly to "{my host name}.dyndns.org" for their respective mail servers. (Since I am using dynamic DNS service, I wasn't easily able to set up my server as a DNS server, so I left the DNS records to be managed at the registrar.)

So then I set up e-mail accounts under each site. I configured the e-mail account for my site to be received via Microsoft Outlook 2003 (POP3) on my laptop. No problem -- connections tested out fine, and I was able to send and receive test e-mails to/from other accounts, both local and external. This e-mail account has been running just fine for about two months now.

So recently I migrated my friend's website to my server and set him up with a similar e-mail address under his site in ISPConfig. I configured his e-mail account to be received via Microsoft Outlook Express 6 on his laptop (also POP3). Similar story -- the connections tested out fine and reported no errors. I was able to SEND e-mails FROM his account and receive them on both internal and external accounts.

Now comes the problem -- I tried sending e-mails TO his new account, both from internal and external accounts. The e-mails seem to send fine and don't ever get bounced back. He runs Send/Receive on Outlook Express on his laptop, it connects fine, runs through the process fine, but NO E-MAILS COME THROUGH. The process finishes with NO ERRORS reported.

I checked Maildir, and the messages are all still there on the server (still waiting to be pulled down...?) so I know they were delivered properly.

I checked /var/log/mail -- no errors. I could even see where the connections were being made from his laptop (via Outlook Express) and then closed without incident.

I checked through all the settings in ISPConfig for both e-mail accounts, and they are identical except for the e-mail addresses, the usernames and the passwords.

I even went as far as to configure his e-mail account in Microsoft Outlook 2003 on my laptop and see if I could pull the messages down that way -- no luck, same problem; it connects fine and finishes fine, but no e-mail messages come across.

I am still able to send and receive e-mail messages using my e-mail account, so I know that ISPConfig is working properly.

Unless there is some strange obscure setting that I am missing in a config file somewhere, I have no idea why this is happening.

If anyone can give me any clues, I would greatly appreciate it. Thanks!

till 5th January 2009 07:48

Which messages or errors appear in the mail log when you send such an email that dissappears?

cazarhosting 6th January 2009 06:58

From /var/log/maillog
 
Below is the portion of the mail log showing me (admin@cazarhosting.com) sending an e-mail to friend (info@royalinteriordecorating.com), then friend attempting to retrieve e-mail via POP3 through Microsoft Outlook -- still same result, no messages pulled down.

~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
Jan 6 00:33:48 server postfix/smtpd[1915]: connect from unknown[192.168.1.1]
Jan 6 00:33:49 server postfix/smtpd[1915]: 159101941FC: client=unknown[192.168.1.1], sasl_method=LOGIN, sasl_username=cazarhostingadmin
Jan 6 00:33:49 server postfix/cleanup[1920]: 159101941FC: message-id=<E589F84BCE0940F28551EFD009A31240@DOCOPSLLC>
Jan 6 00:33:49 server postfix/qmgr[1211]: 159101941FC: from=<admin@cazarhosting.com>, size=2507, nrcpt=1 (queue active)
Jan 6 00:33:49 server postfix/local[1921]: 159101941FC: to=<root@server.cazarhosting.com>, orig_to=<info@royalinteriordecorating.com>, relay=local, delay=0.22, delays=0.19/0.03/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Jan 6 00:33:49 server postfix/qmgr[1211]: 159101941FC: removed
Jan 6 00:33:51 server postfix/smtpd[1915]: disconnect from unknown[192.168.1.1]
Jan 6 00:37:11 server postfix/anvil[1918]: statistics: max connection rate 1/60s for (smtp:192.168.1.1) at Jan 6 00:33:48
Jan 6 00:37:11 server postfix/anvil[1918]: statistics: max connection count 1 for (smtp:192.168.1.1) at Jan 6 00:33:48
Jan 6 00:37:11 server postfix/anvil[1918]: statistics: max cache size 1 at Jan 6 00:33:48
Jan 6 00:38:21 server dovecot: pop3-login: Login: user=<info>, method=PLAIN, rip=::ffff:192.168.1.1, lip=::ffff:192.168.1.253
Jan 6 00:38:21 server dovecot: POP3(info): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

I'm wondering if it may have anything to do with the 'to=<root@server.cazarhosting.com>, orig_to=<info@royalinteriordecorating.com>' line?

till 6th January 2009 09:27

Quote:

I'm wondering if it may have anything to do with the 'to=<root@server.cazarhosting.com>, orig_to=<info@royalinteriordecorating.com>' line?
Yes, the mail was redirected to the root account. Please take a look at the /etc/aliases if you have there any alias for info, if yes, remove it and run the newaliases command.

cazarhosting 8th January 2009 16:51

Thanks
 
That did the trick -- thank you!


All times are GMT +2. The time now is 14:18.

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