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
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.
Please check if the MX records of your domains are correct. You can check that with Code: dig mx yourdomain.com
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
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
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.
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=<[email protected]> Jan 28 13:20:08 aurora1 postfix/qmgr[4133]: DD98F22B68: from=<[email protected]>, 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=<[email protected]> Jan 28 13:20:08 aurora1 postfix/qmgr[4133]: B2A8222B95: from=<[email protected]>, 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] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: TmTwGbUowf78, Hits: 0, size: 1934, queued_as: B2A8222B95, [email protected],[email protected], 618 ms Jan 28 13:20:08 aurora1 postfix/smtp[18500]: DD98F22B68: to=<[email protected]>, 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] <[email protected]> -> <[email protected]>, 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=<[email protected]>, 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/showthread.php?t=27030&highlight=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
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.
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.