#1  
Old 28th January 2010, 01:03
John Ford John Ford is offline
Member
 
Join Date: Jan 2010
Location: Kingston, Ontario, Canada
Posts: 37
Thanks: 5
Thanked 2 Times in 2 Posts
Default Configuring email

Ubuntu Karmic Koala - followed howtoforge tutorial everything running great except receiving email. I've received a few emails but not all that I tested. I'm not sure if I should be forwarding ports or not. I can send email. Sending, I get errors that are destination address required. I can't help but think that my dns records are configured wrong. I've tried so many different combinations I need to be redirected. Has anyone else had this problem?

BTW - great work on ispconfig 3
Reply With Quote
Sponsored Links
  #2  
Old 28th January 2010, 10:18
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,011
Thanks: 826
Thanked 5,378 Times in 4,225 Posts
Default

Please check your mail log.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th January 2010, 13:52
John Ford John Ford is offline
Member
 
Join Date: Jan 2010
Location: Kingston, Ontario, Canada
Posts: 37
Thanks: 5
Thanked 2 Times in 2 Posts
Default

Is there anything in particular I should be looking for? The strange thing is that I am receiving the occasional email but my isp webmail rejects the address entirely with

Code:
 Bad destination host 'DNS Hard Error looking up example1.domain.net (A): 
NXDomain
This is why I am so stumped because I have received a few test emails but not all and the ones that I have received take a long time to arrive.
Reply With Quote
  #4  
Old 28th January 2010, 15:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Please check if the MX records of your domains are correct. You can check that with
Code:
dig mx yourdomain.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 28th January 2010, 15:45
John Ford John Ford is offline
Member
 
Join Date: Jan 2010
Location: Kingston, Ontario, Canada
Posts: 37
Thanks: 5
Thanked 2 Times in 2 Posts
Default

I did that and the record seems to be pointed to the right locations


Code:
root@aurora1:~# dig mx example.com

; <<>> DiG 9.6.1-P2 <<>> mx example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 106
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;example.com.                  IN      MX

;; ANSWER SECTION:
example.com.           86400   IN      MX      10 server1.example.com.

;; AUTHORITY SECTION:
example.com.           85864   IN      NS      ns2.example.com.
example.com.           85864   IN      NS      ns1.example.com.

;; ADDITIONAL SECTION:
server1.example.com.   6235    IN      A       xx.38.64.xxx
ns1.example.com.       80386   IN      A       xx.38.64.xxx

;; Query time: 31 msec
;; SERVER: 24.226.10.193#53(24.226.10.193)
;; WHEN: Thu Jan 28 09:39:22 2010
;; MSG SIZE  rcvd: 122
Reply With Quote
  #6  
Old 28th January 2010, 16:29
John Ford John Ford is offline
Member
 
Join Date: Jan 2010
Location: Kingston, Ontario, Canada
Posts: 37
Thanks: 5
Thanked 2 Times in 2 Posts
Default

smtp is very fast in sending out but pop3 meanders into the mailbox or doesn't arrive at all and is rejected.

I read on another thread that /var/vmail/.mailfilter had to have tolower removed from the variables but that was for a CentOS system in a bug relate to that particular system

Code:
#
# Import variables
#

LOGNAME=tolower("$LOGNAME")
EXTENSION="$1"
RECIPIENT=tolower("$2")
USER=tolower("$3")
HOST=tolower("$4")
SENDER="$5"
DEFAULT="/var/vmail/$HOST/$USER/."

I don't know if that relates to Ubunbtu 9.10
Reply With Quote
  #7  
Old 28th January 2010, 16:32
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,011
Thanks: 826
Thanked 5,378 Times in 4,225 Posts
Default

This is not related to ubuntu systems at all and is also from an outdated thread as this is fixed long time ago.

Please do what I told you and look into the mail log, compare the lines in the mail log for emails that arrive with the lines that appear for emails that disappear.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 28th January 2010, 21:00
John Ford John Ford is offline
Member
 
Join Date: Jan 2010
Location: Kingston, Ontario, Canada
Posts: 37
Thanks: 5
Thanked 2 Times in 2 Posts
Default

This is the log entry from an email that I did receive which was sent two days prior. But I got it.

Code:
Jan 28 13:20:07 aurora1 postfix/smtpd[18479]: connect from mail-fx0-f220.google.com[209.85.220.220]
Jan 28 13:20:07 aurora1 postfix/smtpd[18479]: DD98F22B68: client=mail-fx0-f220.google.com[209.85.220.220]
Jan 28 13:20:08 aurora1 postfix/cleanup[18499]: DD98F22B68: message-id=<471821941001260954q4adb94b4u2f74cef898e08a8a@mail.gmail.com>
Jan 28 13:20:08 aurora1 postfix/qmgr[4133]: DD98F22B68: from=<example@gmail.com>, size=1934, nrcpt=1 (queue active)
Jan 28 13:20:08 aurora1 postfix/smtpd[18503]: connect from localhost.localdomain[127.0.0.1]
Jan 28 13:20:08 aurora1 postfix/smtpd[18503]: B2A8222B95: client=localhost.localdomain[127.0.0.1]
Jan 28 13:20:08 aurora1 postfix/cleanup[18499]: B2A8222B95: message-id=<471821941001260954q4adb94b4u2f74cef898e08a8a@mail.gmail.com>
Jan 28 13:20:08 aurora1 postfix/qmgr[4133]: B2A8222B95: from=<example@gmail.com>, size=2410, nrcpt=1 (queue active)
Jan 28 13:20:08 aurora1 postfix/smtpd[18503]: disconnect from localhost.localdomain[127.0.0.1]
Jan 28 13:20:08 aurora1 amavis[1191]: (01191-06) Passed CLEAN, [209.85.220.220] [209.85.220.220] <example@gmail.com> -> <example@example.com>, Message-ID: <471821941001260954q4adb94b4u2f74cef898e08a8a@mail.gmail.com>, mail_id: TmTwGbUowf78, Hits: 0, size: 1934, queued_as: B2A8222B95, dkim_id=@gmail.com,example@gmail.com, 618 ms
Jan 28 13:20:08 aurora1 postfix/smtp[18500]: DD98F22B68: to=<example@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.99, delays=0.37/0/0/0.62, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01191-06, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as B2A8222B95)
I'm not really seeing where the emails are being dropped. There are attempts to relay emails which the system rejects. What should I be looking for in terms of dropped emails? There are messages such as this
Code:
Jan 28 14:20:01 aurora1 postfix/smtpd[19244]: connect from localhost.localdomain[127.0.0.1]
Jan 28 14:20:01 aurora1 postfix/smtpd[19244]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Jan 28 14:20:01 aurora1 postfix/smtpd[19244]: disconnect from localhost.localdomain[127.0.0.1]
But I'm not sure if that is what I should be looking for.
I really appreciate your help BTW

This came through:
Code:
 
Jan 28 15:39:35 aurora1 amavis[1191]: (01191-07) Passed BAD-HEADER, [86.49.107.109] [86.49.107.109] <example@example.com> -> <example@example.com>, quarantine: f/badh-fOjn6-cY-L+S, mail_id: fOjn6-cY-L+S, Hits: 9.427, size: 1168, queued_as: 38E1122B95, 628 ms
Jan 28 15:39:35 aurora1 postfix/smtp[20274]: 329F322B68: to=<example@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.3, delays=0.63/0/0/0.63, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01191-07, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 38E1122B95)
I've also been following this dns setup
http://www.howtoforge.com/forums/sho...ght=nameserver


I did run this and got the following result
Code:
root@aurora1:~# mydns -v
mydns[21026]: AXFR is enabled
mydns[21026]: TCP ports are enabled
mydns[21026]: DNS UPDATE is not enabled
mydns[21026]: DNS NOTIFY is not enabled
mydns[21026]: DNS IXFR is not enabled
mydns[21026]: optional 'xfer' column found in 'dns_soa' table
mydns[21026]: ipv4_listerner: bind on socket 6 (TCP) failed: 127.0.0.1+53: Address already in use

Last edited by John Ford; 28th January 2010 at 23:01. Reason: additional info
Reply With Quote
  #9  
Old 29th January 2010, 11:10
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,011
Thanks: 826
Thanked 5,378 Times in 4,225 Posts
Default

Quote:
Jan 28 15:39:35 aurora1 amavis[1191]: (01191-07) Passed BAD-HEADER, [86.49.107.109] [86.49.107.109] <example@example.com> -> <example@example.com>, quarantine: f/badh-fOjn6-cY-L+S, mail_id: fOjn6-cY-L+S, Hits: 9.427, size: 1168, queued_as: 38E1122B95, 628 ms
Jan 28 15:39:35 aurora1 postfix/smtp[20274]: 329F322B68: to=<example@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.3, delays=0.63/0/0/0.63, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01191-07, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 38E1122B95)
Thats the reason for the missing emails. They were not dropped, they were quarantined as quarantining for bad headers is enabled in the amavis configuration of your system.

Please set "Bad header lover" to yes in all spamfilter policys that you use in ispconfig and make sure that you selceted one of these policys for the domain.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 29th January 2010, 14:20
John Ford John Ford is offline
Member
 
Join Date: Jan 2010
Location: Kingston, Ontario, Canada
Posts: 37
Thanks: 5
Thanked 2 Times in 2 Posts
 
Default

I changed my settings but I'm not sure that's it. I have a feeling my dns is not set up properly. I noticed that you sent screen captures to someone as to what a proper dns set-up should look like.

Is there anyway you could send me an example of what the set-up should look like?

Also, should I have redundant nameservers elsewhere?

In using intodns.com, I get an MX record for my server but the server has no A record. I tried creating an A record for the server but I am not sure if I have the syntax correct.

Patience is a virtue in some instances, so I read in another thread from till. It is the ISP who creates the reverse DNS PTR and I had to wait for the A record that I created to resolve. My mailserver now has an A record but no change in mail receipts thus far. Zoneedit.com suggests removing all CNAME aliases. So that's what I try now.

Does anyone know how to change the Serial number (SOA) in the mydns database for a certain A record so that they can match the SOA located at the back up remotely hosted nameservers (SOA)?

Well after much trial and error I think I may have got the receiving email problem fixed. For the DNS records the A "mail" record needs to be the internal ip address LAN of the machine if it is behind a router not the WAN address. All the other records seem to require the external WAN.

Last edited by John Ford; 30th January 2010 at 23:32. Reason: additional info
Reply With Quote
Reply

Bookmarks

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
Email delivery problem - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] qiubosu Installation/Configuration 1 18th January 2010 09:21
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 03:39
Xen on Ubuntu kmand HOWTO-Related Questions 17 5th March 2009 18:43
Create new site, but without configuring email for that domain pulsorock General 1 24th September 2008 08:37
email forwarding locally consumes all resources rdells General 20 1st May 2006 19:43


All times are GMT +2. The time now is 10:06.


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