I'm hoping someone can help with my MTA/MDA setup. I followed the instructions in the howto http://library.linode.com/email/postfix ... 0-maverick but with modifications that someone had posted in the forum due to the updated version of dovecot (which results in the original config file in the howto not working). I tested it according to the document and everything worked fine. I used mutt and sent and received e-mails just fine. When configuring I specified "techblawg.ca" everywhere. No subdomains.
I then setup DNS. Originally, I just pointed my registrar at Linode's nameservers, then pointed everything back to the IP of my old host. My MX record was set to "techblawg.ca" Then I initially switched everything but "mail.techblawg.ca". The site switched over just fine.
I then tested with a remote client (Outlook) BEFORE transitioning the domain name for mail.techlbawg.ca over. What I did was to set my hosts file to have the IP address map as follows:
50.116.59.233 techblawg.ca
I set the IMAP server and SMTP server to "techblawg.ca" Everything went swimmingly. I could send and receive just fine. I SSH'd back in to check the logs, and everything seemed to go fine - I could send and receive locally (i.e. while logged in through SSH, using mutt) and from a remote client (Outlook).
I then switched the A record for mail.techblawg.ca. MX had been set to "techblawg.ca" so that didn't change. I waited for the DNS changes to propagate and ran a traceroute to confirm when it did, after having edited my hosts file.
Unfortunately, this seems to have unleashed a few problems:
Using mail through mutt and SSH:
- I can send mail to external addresses just fine - I cannot receive e-mails from anyone. This includes from other accounts on the same machine. While there is no error message, they don't show up in the inbox. It just all disappears. No bounceback message.
Using an external mail client (Outlook)
- I cannot send or receive e-mails at all - tests for receiving and sending both fail. - However, if I reinsert the hosts entry so that "techblawg.ca" points to my linode IP, I can access to retrieve (IMAP side) but cannot access to send through SMTP
I have tried changing the MX record to mail.techblawg.ca but that doesn't seem to change much. I have also tried changing my /etc/hosts file on my Linode to mail.techblawg.ca but to no avail.
The other thing I've noticed is that the logs seem to show mails coming in, from "www-data@techblawg.ca".
Here is an excerpt from the mail log over the last few days:
Code: Aug 21 15:42:33 techblawg postfix/qmgr[31743]: 0F77D2E07A: removed Aug 21 18:25:34 techblawg postfix/pickup[32517]: 5FFC72E079: uid=1000 from=<longbean> Aug 21 18:25:34 techblawg postfix/cleanup[1137]: 5FFC72E079: message-id=<20120821222534.5FFC72E079@techblawg.ca> Aug 21 18:25:34 techblawg postfix/qmgr[31743]: 5FFC72E079: from=<longbean@techblawg.ca>, size=307, nrcpt=1 (queue active) Aug 21 18:25:34 techblawg postfix/trivial-rewrite[1139]: warning: do not list domain techblawg.ca in BOTH mydestination and virtual_mailbox_domains Aug 21 18:25:34 techblawg postfix/local[1140]: 5FFC72E079: to=<david@techblawg.ca>, relay=local, delay=0.07, delays=0.06/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) Aug 21 18:25:34 techblawg postfix/qmgr[31743]: 5FFC72E079: removed Aug 21 18:35:34 techblawg postfix/pickup[32517]: 188152E079: uid=0 from=<root> Aug 21 18:35:34 techblawg postfix/cleanup[1231]: 188152E079: message-id=<20120821223534.188152E079@techblawg.ca> Aug 21 18:35:34 techblawg postfix/qmgr[31743]: 188152E079: from=<root@techblawg.ca>, size=371, nrcpt=1 (queue active) Aug 21 18:35:34 techblawg postfix/pipe[1234]: 188152E079: to=<david@techblawg.ca>, relay=dovecot, delay=0.16, delays=0.07/0.01/0/0.08, dsn=2.0.0, status=sent (delivered via dovecot service) Aug 21 18:35:34 techblawg postfix/qmgr[31743]: 188152E079: removed Aug 21 18:55:02 techblawg postfix/master[2429]: daemon started -- version 2.8.5, configuration /etc/postfix Aug 21 18:55:09 techblawg dovecot: master: Dovecot v2.0.13 starting up (core dumps disabled) Aug 21 19:04:46 techblawg postfix/pickup[2447]: 4F4C12E07C: uid=1001 from=<david> Aug 21 19:04:46 techblawg postfix/cleanup[2874]: 4F4C12E07C: message-id=<20120821230446.GA2847@techblawg.ca> Aug 21 19:04:46 techblawg postfix/qmgr[2450]: 4F4C12E07C: from=<david@techblawg.ca>, size=566, nrcpt=1 (queue active) Aug 21 19:04:46 techblawg postfix/smtp[2879]: 4F4C12E07C: to=<dma@blaney.com>, relay=mail.blaney.com[38.112.113.147]:25, delay=0.55, delays=0.1/0.02/0.34/0.09, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as D03101BC0524_341282F) Aug 21 19:04:46 techblawg postfix/qmgr[2450]: 4F4C12E07C: removed Aug 23 00:37:59 techblawg dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Aug 23 00:37:59 techblawg dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Aug 23 00:37:59 techblawg dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil Aug 23 00:37:59 techblawg dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil-auth-penalty Aug 23 00:37:59 techblawg dovecot: master: Fatal: Failed to start listeners Aug 23 00:38:00 techblawg postfix/master[2429]: terminating on signal 15 Aug 23 00:38:01 techblawg postfix/master[4587]: daemon started -- version 2.8.5, configuration /etc/postfix Aug 23 00:42:09 techblawg postfix/master[4587]: terminating on signal 15 Aug 23 00:43:49 techblawg dovecot: master: Dovecot v2.0.13 starting up (core dumps disabled) Aug 23 00:43:50 techblawg dovecot: config: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Aug 23 00:43:50 techblawg dovecot: ssl-params: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Aug 23 00:43:50 techblawg dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Aug 23 00:43:50 techblawg dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill) Aug 23 00:44:37 techblawg postfix/master[31787]: daemon started -- version 2.9.3, configuration /etc/postfix Aug 23 00:51:08 techblawg postfix/master[31787]: reload -- version 2.9.3, configuration /etc/postfix Aug 23 00:52:47 techblawg dovecot: master: Dovecot v2.0.19 starting up (core dumps disabled) Aug 23 00:55:32 techblawg postfix/master[2591]: daemon started -- version 2.9.3, configuration /etc/postfix Aug 23 00:55:39 techblawg dovecot: master: Dovecot v2.0.19 starting up (core dumps disabled) Aug 23 00:55:43 techblawg postfix/pickup[2601]: CE2432E08C: uid=33 from=<www-data> Aug 23 00:55:43 techblawg postfix/cleanup[2843]: CE2432E08C: message-id=<851f0dc06a29648351a19869e9e2509b@techblawg.ca> Aug 23 00:55:43 techblawg postfix/qmgr[2602]: CE2432E08C: from=<www-data@techblawg.ca>, size=155478, nrcpt=1 (queue active) Aug 23 00:55:44 techblawg postfix/pipe[2852]: CE2432E08C: to=<david@techblawg.ca>, relay=dovecot, delay=0.29, delays=0.14/0.01/0/0.15, dsn=2.0.0, status=sent (delivered via dovecot service) Aug 23 00:55:44 techblawg postfix/qmgr[2602]: CE2432E08C: removed Aug 23 22:00:10 techblawg postfix/pickup[18857]: AF1AD2D4FA: uid=33 from=<www-data> Aug 23 22:00:10 techblawg postfix/cleanup[20940]: AF1AD2D4FA: message-id=<7a8c528e352d88f9fadd40a7f60c537f@techblawg.ca> Aug 23 22:00:10 techblawg postfix/qmgr[2602]: AF1AD2D4FA: from=<www-data@techblawg.ca>, size=910, nrcpt=1 (queue active) Aug 23 22:00:10 techblawg postfix/pipe[20945]: AF1AD2D4FA: to=<david@techblawg.ca>, relay=dovecot, delay=0.22, delays=0.11/0.01/0/0.11, dsn=2.0.0, status=sent (delivered via dovecot service) Aug 23 22:00:10 techblawg postfix/qmgr[2602]: AF1AD2D4FA: removed Aug 23 22:55:50 techblawg postfix/pickup[22165]: 1C1062D4FA: uid=33 from=<www-data> Aug 23 22:55:50 techblawg postfix/cleanup[22822]: 1C1062D4FA: message-id=<c59eeaa61f4b9cc1cada248d0838ac08@techblawg.ca> Aug 23 22:55:50 techblawg postfix/qmgr[2602]: 1C1062D4FA: from=<www-data@techblawg.ca>, size=910, nrcpt=1 (queue active) Aug 23 22:55:50 techblawg postfix/pipe[22827]: 1C1062D4FA: to=<david@techblawg.ca>, relay=dovecot, delay=0.24, delays=0.03/0.01/0/0.2, dsn=2.0.0, status=sent (delivered via dovecot service) Aug 23 22:55:50 techblawg postfix/qmgr[2602]: 1C1062D4FA: removed Aug 24 00:58:33 techblawg postfix/pickup[25254]: 730E22D4FB: uid=33 from=<www-data> Aug 24 00:58:33 techblawg postfix/cleanup[26650]: 730E22D4FB: message-id=<08aa13fe64bfd7e16fddc3441fb92e62@techblawg.ca> Aug 24 00:58:33 techblawg postfix/qmgr[2602]: 730E22D4FB: from=<www-data@techblawg.ca>, size=73960, nrcpt=1 (queue active) Aug 24 00:58:33 techblawg postfix/pipe[26655]: 730E22D4FB: to=<david@techblawg.ca>, relay=dovecot, delay=0.11, delays=0.06/0.01/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service) Aug 24 00:58:33 techblawg postfix/qmgr[2602]: 730E22D4FB: removed Aug 24 02:52:40 techblawg postfix/pickup[28333]: 3A9DC2D4FB: uid=33 from=<www-data> Aug 24 02:52:40 techblawg postfix/cleanup[30205]: 3A9DC2D4FB: message-id=<27736ea18225b5a6c21db69289e11638@techblawg.ca> Aug 24 02:52:40 techblawg postfix/qmgr[2602]: 3A9DC2D4FB: from=<www-data@techblawg.ca>, size=910, nrcpt=1 (queue active) Aug 24 02:52:40 techblawg postfix/pipe[30210]: 3A9DC2D4FB: to=<david@techblawg.ca>, relay=dovecot, delay=0.09, delays=0.02/0.01/0/0.06, dsn=2.0.0, status=sent (delivered via dovecot service) Aug 24 02:52:40 techblawg postfix/qmgr[2602]: 3A9DC2D4FB: removed Aug 24 02:52:40 techblawg postfix/pickup[28333]: 88C4C2D4FB: uid=33 from=<www-data> Aug 24 02:52:40 techblawg postfix/cleanup[30205]: 88C4C2D4FB: message-id=<3f863c98dd63ebf82af422ab12b9e430@techblawg.ca> Aug 24 02:52:40 techblawg postfix/qmgr[2602]: 88C4C2D4FB: from=<www-data@techblawg.ca>, size=910, nrcpt=1 (queue active) Aug 24 02:52:40 techblawg postfix/pipe[30210]: 88C4C2D4FB: to=<david@techblawg.ca>, relay=dovecot, delay=0.02, delays=0/0/0/0.01, dsn=2.0.0, status=sent (delivered via dovecot service) Aug 24 02:52:40 techblawg postfix/qmgr[2602]: 88C4C2D4FB: removed Aug 24 03:35:51 techblawg postfix/pickup[31385]: A9B822D4FB: uid=33 from=<www-data> Aug 24 03:35:51 techblawg postfix/cleanup[31542]: A9B822D4FB: message-id=<1b61f222500da15e37d4d09e1aff4832@techblawg.ca> Aug 24 03:35:51 techblawg postfix/qmgr[2602]: A9B822D4FB: from=<www-data@techblawg.ca>, size=910, nrcpt=1 (queue active) Aug 24 03:35:51 techblawg postfix/pipe[31547]: A9B822D4FB: to=<david@techblawg.ca>, relay=dovecot, delay=0.05, delays=0.03/0.01/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service) Aug 24 03:35:51 techblawg postfix/qmgr[2602]: A9B822D4FB: removed Aug 24 07:21:33 techblawg postfix/pickup[5388]: 0CC422D50F: uid=1001 from=<david> Aug 24 07:21:33 techblawg postfix/cleanup[6524]: 0CC422D50F: message-id=<20120824112132.GA6486@techblawg.ca> Aug 24 07:21:33 techblawg postfix/qmgr[2602]: 0CC422D50F: from=<david@techblawg.ca>, size=436, nrcpt=1 (queue active) Aug 24 07:21:34 techblawg postfix/smtp[6529]: 0CC422D50F: to=<david@smellydog.ca>, relay=smellydog.ca[174.120.252.82]:25, delay=1.8, delays=0.12/0.03/0.4/1.2, dsn=2.0.0, status=sent (250 OK id=1T4rxG-0000XE-6T) Aug 24 07:21:34 techblawg postfix/qmgr[2602]: 0CC422D50F: removed Aug 24 07:41:41 techblawg postfix/pickup[5388]: 49B052D50F: uid=1000 from=<longbean> Aug 24 07:41:41 techblawg postfix/cleanup[7306]: 49B052D50F: message-id=<20120824114141.49B052D50F@techblawg.ca> Aug 24 07:41:41 techblawg postfix/qmgr[2602]: 49B052D50F: from=<longbean@techblawg.ca>, size=317, nrcpt=1 (queue active) Aug 24 07:41:41 techblawg postfix/pipe[7311]: 49B052D50F: to=<david@techblawg.ca>, relay=dovecot, delay=0.19, delays=0.02/0.02/0/0.15, dsn=2.0.0, status=sent (delivered via dovecot service) Aug 24 07:41:41 techblawg postfix/qmgr[2602]: 49B052D50F: removed
Here is the mail.err file:
Code: Aug 23 00:37:59 techblawg dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil Aug 23 00:37:59 techblawg dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil-auth-penalty Aug 23 00:37:59 techblawg dovecot: master: Fatal: Failed to start listeners
My /etc/mailname file is only one line:
Code: techblawg.ca
Here is my /etc/hosts file:
Code: 127.0.0.1 localhost 127.0.1.1 ubuntu
# The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
127.0.0.1 techblawg 50.116.59.233 techblawg.ca
One last, rather odd thing. When I tried to access mail.techblawg.ca through a browser, I got my nagios page (which I had set up as a separate site (using a separate entry in /etc/nginx/sites-enabled/) to listen for nagios.techblawg.ca. There's no mention of "mail.techblawg.ca"!!
Any suggestions would be most appreciated.
|