Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd June 2013, 17:57
mikeoc mikeoc is offline
Junior Member
 
Join Date: Jun 2013
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default Perfect Server setup not receiving mail

Hi all,

First off, great site. Amazing tutorials and obviously a keen community, so pleased to meet you all.

I have a question though, I followed the perfect server set up for ubuntu 12.04 tutorial. All is working well apart from the fact that I can't receive email from outside the server. Sending is no problem however.

The server is ubuntu 12.04 running on linode. It's going to house a few of my personal drupal based websites as well as a couple of clients, so while the traffic is going to be low it's important that it is solid, which it seems to be apart from this issue.

I'm feeling a bit stuck, I've installed and re-installed the server several times now over the last few days and this is the closest I've got to getting it working properly. I think I'm 90% there but need a little help.

Quite likely I've missed something obvious, I'm no fool but I'm still rather green when it comes to this sort of thing.

Thanks in advance,

Mike
Reply With Quote
Sponsored Links
  #2  
Old 2nd June 2013, 18:47
monkfish monkfish is offline
HowtoForge Supporter
 
Join Date: Mar 2013
Posts: 106
Thanks: 9
Thanked 15 Times in 14 Posts
Default

Hello Mike,

Few things to check; in no particular order:-

- do you have correct MX (mail exchanger) records pointing to the server for delivery of email? Something like http://www.mxtoolbox.com/ will help you determine whether or not your DNS is correct.

- You have the mailbox created correctly in the ispconfig interface? Would assume so as you suggest you can send email, but worth checking.

- what does the ispconfig monitor say? any problems with postfix? Is postfix running? what happens if you do a "service postfix restart"

- what does /var/log/mail.log say - any errors in there? Do a "tail -f /var/log/mail.log" on the console and send yourself some email from outside, see what happens in the log.

- Do a "postqueue -p" - is there anything queued awaiting delivery.

- Is amavisd running? any errors there that might prevent delivery of email?

HTH
Reply With Quote
  #3  
Old 2nd June 2013, 20:01
mikeoc mikeoc is offline
Junior Member
 
Join Date: Jun 2013
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi monkfish, thanks for the reply

I have my suspicions that it is DNS/MX related. All that's a bit of a dark art to me still. Using that lookup tool the one thing that strikes me is this:
Code:
SMTP Reverse DNS Mismatch Warning - Reverse DNS does not match SMTP Banner
I have NO idea of what that means.

As far as I can tell the mailbox is set up as it should be.

Postfix tells me it's running:
postfix/postfix-script: the Postfix mail system is running: PID: 29434

Postfix restarts without issue with no apparent change.

ispconfig monitor gives the system a full bill of health

The output of logs like this mean very little to me but in /var/log/mail.log I'm seeing this a lot:
Code:
Jun  2 06:40:01 vincam dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Jun  2 06:40:01 vincam postfix/smtpd[12169]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/$
Jun  2 06:40:01 vincam postfix/smtpd[12169]: connect from localhost[127.0.0.1]
Jun  2 06:40:01 vincam postfix/smtpd[12169]: lost connection after CONNECT from localhost[127.0.0.1]
Jun  2 06:40:01 vincam postfix/smtpd[12169]: disconnect from localhost[127.0.0.1]
tail -f /var/log/mail.log shows this:
Code:
Jun  2 18:20:49 vincam dovecot: imap-login: Login: user=<user@example.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=32333, secured
Jun  2 18:20:49 vincam dovecot: imap(user@example.com): Disconnected: Logged out bytes=79/687
Jun  2 18:20:57 vincam postfix/anvil[31876]: statistics: max connection rate 1/60s for (smtp:79.170.40.91) at Jun  2 18:14:05
Jun  2 18:20:57 vincam postfix/anvil[31876]: statistics: max connection count 1 for (smtp:79.170.40.91) at Jun  2 18:14:05
Jun  2 18:20:57 vincam postfix/anvil[31876]: statistics: max message rate 1/60s for (smtp:79.170.40.91) at Jun  2 18:14:05
Jun  2 18:20:57 vincam postfix/anvil[31876]: statistics: max cache size 1 at Jun  2 18:14:05
Jun  2 18:22:14 vincam postfix/smtpd[32344]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman
Jun  2 18:22:14 vincam postfix/smtpd[32344]: connect from mail91.extendcp.co.uk[79.170.40.91]
Jun  2 18:22:14 vincam postfix/trivial-rewrite[32347]: warning: do not list domain example.com in BOTH virtual_mailbox_domains and relay_domains
Jun  2 18:22:14 vincam postfix/cleanup[32351]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman
Jun  2 18:22:14 vincam postfix/smtpd[32344]: A1C87B713: client=mail91.extendcp.co.uk[79.170.40.91]
Jun  2 18:22:14 vincam postfix/cleanup[32351]: A1C87B713: message-id=<90C75C03-6D1F-4DE9-9851-E0580070998E@us3m.com>
Jun  2 18:22:14 vincam postfix/qmgr[29436]: A1C87B713: from=<mike@us3m.com>, size=898, nrcpt=1 (queue active)
Jun  2 18:22:14 vincam postfix/smtpd[32344]: disconnect from mail91.extendcp.co.uk[79.170.40.91]
Jun  2 18:22:20 vincam postfix/smtpd[32355]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman
Jun  2 18:22:20 vincam postfix/smtpd[32355]: connect from localhost[127.0.0.1]
Jun  2 18:22:20 vincam postfix/trivial-rewrite[32347]: warning: do not list domain example.com in BOTH virtual_mailbox_domains and relay_domains
Jun  2 18:22:20 vincam postfix/smtpd[32355]: 0E3FAB714: client=localhost[127.0.0.1]
Jun  2 18:22:20 vincam postfix/cleanup[32351]: 0E3FAB714: message-id=<90C75C03-6D1F-4DE9-9851-E0580070998E@us3m.com>
Jun  2 18:22:20 vincam postfix/qmgr[29436]: 0E3FAB714: from=<mike@us3m.com>, size=1395, nrcpt=1 (queue active)
Jun  2 18:22:20 vincam postfix/smtpd[32355]: disconnect from localhost[127.0.0.1]
Jun  2 18:22:20 vincam postfix/trivial-rewrite[32347]: warning: do not list domain example.com in BOTH virtual_mailbox_domains and relay_domains
Jun  2 18:22:20 vincam amavis[3265]: (03265-15) Passed CLEAN, [79.170.40.91] [82.14.162.91] <mike@us3m.com> -> <user@example.com>, Message-ID: <90C75C03-6D1F-4DE9-9851-E0580070998E@us3m.com>, mail_id: d2odX4E3Y2X7, Hits: 0, size: 898, queued_as: 0E3FAB714, 5384 ms
Jun  2 18:22:20 vincam postfix/smtp[32352]: A1C87B713: to=<user@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.4, delays=0.05/0.01/0/5.4, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0E3FAB714)
Jun  2 18:22:20 vincam postfix/qmgr[29436]: A1C87B713: removed
Jun  2 18:22:20 vincam postfix/smtp[32356]: 0E3FAB714: to=<user@example.com>, relay=none, delay=0.02, delays=0.01/0.01/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=smtp type=AAAA: Host not found)
Jun  2 18:22:20 vincam postfix/cleanup[32351]: 14B69B715: message-id=<20130602172220.14B69B715@vincam.timesaverads.co.uk>
Jun  2 18:22:20 vincam postfix/bounce[32357]: 0E3FAB714: sender non-delivery notification: 14B69B715
Jun  2 18:22:20 vincam postfix/qmgr[29436]: 14B69B715: from=<>, size=3465, nrcpt=1 (queue active)
Jun  2 18:22:20 vincam postfix/qmgr[29436]: 0E3FAB714: removed
Jun  2 18:22:20 vincam postfix/smtp[32356]: 14B69B715: to=<mike@us3m.com>, relay=mail.us3m.com[79.170.40.91]:25, delay=0.12, delays=0.01/0/0.07/0.03, dsn=2.0.0, status=sent (250 OK id=1UjBz2-0002kA-6q)
Jun  2 18:22:20 vincam postfix/qmgr[29436]: 14B69B715: removed
postqueue -p reports "Mail queue is empty"

amavisd-new is running, can't see any errors.

Any insights?

Mike
Reply With Quote
  #4  
Old 3rd June 2013, 18:26
mikeoc mikeoc is offline
Junior Member
 
Join Date: Jun 2013
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Just to update, I resolved the issue with the reverse DNS through the Linode manager - to my servers FQDN, so that doesn't come up anymore.

Still the issue persists though.

When I send an email to an address on the server I get a bounce back with the error message:

Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error for name=smtp type=AAAA: Host not found.

Does that ring any bells?

Mike
Reply With Quote
  #5  
Old 3rd June 2013, 18:57
monkfish monkfish is offline
HowtoForge Supporter
 
Join Date: Mar 2013
Posts: 106
Thanks: 9
Thanked 15 Times in 14 Posts
Default

Hi Mike,

Nice update and responsive ISP by the sounds of it!

I seem to recall that its only a warning by postfix that reverse name doesn't match banner name - this should not on its own stop mail being delivered.

Quote:
X-Postfix; Host or domain name not found. Name service error for name=smtp type=AAAA: Host not found.
Its possible, although I'm certain on this, that could be a dns related issue. Check your /etc/resolv.conf see what nameservers you are using?
Reply With Quote
The Following User Says Thank You to monkfish For This Useful Post:
mikeoc (9th June 2013)
  #6  
Old 4th June 2013, 00:05
mikeoc mikeoc is offline
Junior Member
 
Join Date: Jun 2013
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi again,

/etc/resolv.conf holds this info:

domain members.linode.com
search members.linode.com
nameserver 109.74.192.20
nameserver 109.74.193.20
nameserver 109.74.194.20

I don't know if that's right or not, from what I've read elsewhere Linode tends to do things a little differently?

Mike
Reply With Quote
  #7  
Old 7th June 2013, 01:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by monkfish View Post
Hi Mike,

Nice update and responsive ISP by the sounds of it!

I seem to recall that its only a warning by postfix that reverse name doesn't match banner name - this should not on its own stop mail being delivered.



Its possible, although I'm certain on this, that could be a dns related issue. Check your /etc/resolv.conf see what nameservers you are using?
If you don't need IPv6, disable it in /etc/postfix/main.cf:

Code:
inet_protocols = ipv4
__________________
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
Reply

Bookmarks

Tags
12.04, email, problem, receive 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
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 22:58
ISPConfig 3 Installation - Postfix queue stuck andrew971218 Installation/Configuration 21 15th July 2011 14:42
Sending emails with custom FROM email address merisor Installation/Configuration 4 8th February 2010 16:27
I don't recieve mail. privir Installation/Configuration 2 3rd June 2009 22:08
Problem with dcc-client installation (Postfix) swap-as Installation/Configuration 9 18th September 2008 20:47


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


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