Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th April 2010, 20:20
sampson sampson is offline
Junior Member
 
Join Date: Apr 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't recieve email from external account (no bounce message)

Hi. I'm running on ec2 (if relevant) and ran through the perfect-server-debian-lenny-ispconfig3 tut.

The registrar is Godaddy, and I've set up hosts ns1 and ns2 to point to my servers IP, and set the nameserver entries to the above. I used to run my own Plesk box on a DSL with the same config, and all worked as expected, so I don't think the problem is here.

I added a DNS zone in ispconfig:




And Records:

Code:
 	A  	        domain.com  	        123.456.789.123  	0  	
	CNAME  	        www.domain.com 	        domain.com  	  	0 	
	MX 	        domain.com 	        mail.domain.com  	10 	
	NS 	        domain.com 	        ns1.domain.com  	0 	
	NS 	        domain.com 	        ns2.domain.com  	0
An Email Domain:

Code:
domU-00-00-00-00-00-00.compute-1.internal 	mail.domain.com
And mailbox with receiving enabled.

I can send email to external addresses from this account via squirrelmail, and through external email programs such as Mail (though, both the incoming and outgoing servers will only work if entered like "domain.com" as opposed to "mail.domain.com" in the external email client config - don't know why). These emails are received by the external accounts fine. But when I reply, nothing happens. No bounce, no errors in the logs, nothing in the queue. Just silent failure. However, if I send the email to its own address (e.g. from: test@domain.com to:test@domain.com) it works, even from external email client.

I was having problems with clamav after install. Out of date errors, and unable to update errors. I disabled clamav by commenting out the call to it in /etc/amavis/conf.d/15-av_scanners while I try to get everything working.

When I ran through ISPConfig, I used the given public dns name as the fqdn (something like ec2-00-00-00-00.compute-0.amazonaws.com).

tl;dr: email can go out, but can't come in.

Thanks for any tips/direction!
Reply With Quote
Sponsored Links
  #2  
Old 28th April 2010, 21:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Quote:
I was having problems with clamav after install. Out of date errors, and unable to update errors. I disabled clamav by commenting out the call to it in /etc/amavis/conf.d/15-av_scanners while I try to get everything working.
This might be the reason for the disappaering messages. Please undo your changes and fix the problem as described in the ISPConfig FAQ:

http://www.faqforge.com/linux/how-to...ian-5-0-lenny/

Then send a message from an external source and post the lines that get added to the mail log when the email arrives at your server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th April 2010, 21:46
sampson sampson is offline
Junior Member
 
Join Date: Apr 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Then send a message from an external source and post the lines that get added to the mail log when the email arrives at your server.
Thanks for the reply.

I fixed/undid the disabling of ClamAV, and followed the linked FAQ to upgrade. However, I still get the error:
Quote:
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.95.3 Recommended version: 0.96
(It used to be 0.94, so the upgrade did work).

I rebooted after doing this and then cleared all my mail logs. This is the output immediately after sending an email from gmail, then checking it from squirrelmail:

/var/log/mail.log:
Code:
Apr 28 15:36:16 domU-00-00-00-00-00-00 imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 28 15:36:16 domU-00-00-00-00-00-00 imapd: LOGIN, user=test@domain.com, ip=[::ffff:127.0.0.1], port=[55986], protocol=IMAP
Apr 28 15:36:16 domU-00-00-00-00-00-00 imapd: LOGOUT, user=test@domain.com, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=87, sent=391, time=0
/var/log/mail.info:
Code:
Apr 28 15:36:16 domU-00-00-00-00-00-00 imapd: LOGIN, user=test@domain.com, ip=[::ffff:127.0.0.1], port=[55986], protocol=IMAP
Apr 28 15:36:16 domU-00-00-00-00-00-00 imapd: LOGOUT, user=test@domain.com, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=87, sent=391, time=0
/var/log/mail.err is blank, as is /var/log/mail.warn.

As you can see, there is no indication that the email I sent got to the server, or at least to these logs...

Here is netstat -tap:

Code:
tcp        0      0 localhost.localdo:10024 *:*                     LISTEN      1009/amavisd (maste
tcp        0      0 localhost.localdo:10025 *:*                     LISTEN      1633/master     
tcp        0      0 *:mysql                 *:*                     LISTEN      1071/mysqld     
tcp        0      0 localhost.localdo:spamd *:*                     LISTEN      1175/spamd.pid  
tcp        0      0 *:sunrpc                *:*                     LISTEN      886/portmap     
tcp        0      0 localhost.localdom:1008 *:*                     LISTEN      1680/famd       
tcp        0      0 *:ftp                   *:*                     LISTEN      1647/pure-ftpd (SER
tcp        0      0 domU-00-00-00-00-00-00:domain *:*                     LISTEN      1568/mydns      
tcp        0      0 localhost.locald:domain *:*                     LISTEN      1568/mydns      
tcp        0      0 *:ssh                   *:*                     LISTEN      981/sshd        
tcp        0      0 *:smtp                  *:*                     LISTEN      1633/master     
tcp        0    288 domU-00-00-00-00-00-00:ssh 12-23-45-67.stati:23902 ESTABLISHED 1815/0          
tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      1542/couriertcpd
tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      1565/couriertcpd
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      1553/couriertcpd
tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      1530/couriertcpd
tcp6       0      0 [::]:http-alt           [::]:*                  LISTEN      1752/apache2    
tcp6       0      0 [::]:www                [::]:*                  LISTEN      1752/apache2    
tcp6       0      0 [::]:tproxy             [::]:*                  LISTEN      1752/apache2    
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      1647/pure-ftpd (SER
tcp6       0      0 ip6-localhost:domain    [::]:*                  LISTEN      1568/mydns      
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      981/sshd        
tcp6       0      0 [::]:https              [::]:*                  LISTEN      1752/apache2
Thanks again.
Reply With Quote
  #4  
Old 30th April 2010, 13:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
MX domain.com mail.domain.com 10
Did you create an A record for mail.domain.com?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 30th April 2010, 15:37
sampson sampson is offline
Junior Member
 
Join Date: Apr 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I did indeed create an A record. Turns out the problem was that I hadn't opened port 53 UDP (I only had 53 TCP open). Once I opened UDP it started functioning correctly.

Much thanks for your help!
Reply With Quote
Reply

Bookmarks

Tags
dns, email

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure postfix for 1 external ip to send email Roland Megens Installation/Configuration 10 17th September 2009 00:09
Forward all email from a domain to a particular account ignasigarcia General 1 5th May 2009 14:24
Don't resend "salutatory" email every time you make an account change. heftigrat Feature Requests 1 9th June 2007 15:45
A user without an email account Zippy79 Installation/Configuration 1 14th January 2006 23:00
External Email Getting Lost jash General 10 8th November 2005 21:55


All times are GMT +2. The time now is 13:54.


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