Alternative to self-hosted mail server - contact forms

Discussion in 'Server Operation' started by msp, May 7, 2014.

  1. msp

    msp Member

    Hi all

    After years of self-hosting my websites, each with their own contact forms (in a variety of php applications: ModX, Wordpress, etc.), I'm finally done with the endless struggle of fighting to keep all the constituent parts running smoothly.

    I run ISPConfig3 on a Linode.com VPS which in the most part I'm extremely happy with. There was a time last year when I had very serious issues with thousands of spam message being sent from my server, which I think hugely affected my IP address mail origin reputation - but this was entirely my fault for installing a script which had a vulnerability.

    Anyway, gladly that issue hasn't returned, but from time to time I still find out that for the last x weeks I haven't been receiving new enquiries through my site because one of the following stopped working (I don't have quite the expertise / time to figure out what is happening): postfix, amavisd, ClamAV.

    Usually when I realise I haven't been receiving email, I log on to my website and send myself a test message through my own contact form to confirm it's not working, then SSH in and run

    Code:
    mailq
    to see if there are things stuck in there. When it's empty, I know all is working fine - when it has items I sigh heavily and try to restart the above services.

    Today I had to restart my server altogether as I'm getting a new issue:

    Code:
    (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Even after restarting the server those mail messages are still there. So I checked, and the messages actually exist in the following dir:

    /var/spool/postfix/deferred
    .... /0
    .... /1
    .... /2
    .... /3
    etc.

    I can't get them out of there, except to download the whole folder and open up messages individually. There are quite a few and very hard to read as there are no line breaks...

    ANYWAY - I'm waffling.

    What I'm really looking for is an alternative to using my own mail server for the contact forms that are hosted on my sites.

    Is the above possible?

    I use Google Apps for Domains.

    Thanks

    Mat
     
  2. msp

    msp Member

    * bump *

    Any ideas people?

    Postfix keeps breaking and I haven't figured out how to resolve it without rebooting the flipping server!

    Thans
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    This means that amvis was notstarted. It shoud have been enough to start amavis instead of rebooting the server.

    Please post the exact error messages from mail.log file.
     
  4. msp

    msp Member

    Code:
    May 20 15:52:46 doris postfix/cleanup[4871]: 216AD141A7: message-id=<20140520052837.4A42514254@doris.blahblahblah.com>
    May 20 15:52:46 doris postfix/smtpd[4746]: disconnect from localhost[127.0.0.1]
    May 20 15:52:46 doris postfix/qmgr[4329]: 216AD141A7: from=<root@doris.blahblahblah.com>, size=1015, nrcpt=1 (queue active)
    May 20 15:52:46 doris amavis[2672]: (02672-03) Passed CLEAN, <root@doris.blahblahblah.com> -> <support@blahblahblah.com>, Message-ID: <20140520052837.4A42514254@doris.blahblahblah.com>, mail_id: PwhoPEAr1HHw, Hits: -0.001, size: 535, queued_as: 216AD141A7, 6751 ms
    May 20 15:52:46 doris postfix/smtp[4864]: 4A42514254: to=<support@blahblahblah.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=33849, delays=33842/0.2/0/6.8, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02672-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 216AD141A7)
    May 20 15:52:46 doris postfix/qmgr[4329]: 4A42514254: removed
    May 20 15:52:46 doris postfix/smtp[4875]: 216AD141A7: to=<support@blahblahblah.com>, relay=ASPMX.L.GOOGLE.COM[2a00:1450:400c:c03::1b]:25, delay=0.58, delays=0/0.01/0.03/0.54, dsn=2.0.0, status=sent (250 2.0.0 OK 1400597566 ht3si13078038wjb.144 - gsmtp)
    May 20 15:52:46 doris postfix/qmgr[4329]: 216AD141A7: removed
    May 20 15:52:49 doris postfix/smtpd[4746]: connect from localhost[127.0.0.1]
    May 20 15:52:49 doris postfix/smtpd[4746]: 84578141A7: client=localhost[127.0.0.1]
    May 20 15:52:49 doris postfix/cleanup[4871]: 84578141A7: message-id=<20140520052837.51BEE14257@doris.blahblahblah.com>
    May 20 15:52:49 doris postfix/qmgr[4329]: 84578141A7: from=<root@doris.blahblahblah.com>, size=1243, nrcpt=1 (queue active)
    May 20 15:52:49 doris postfix/local[4872]: 84578141A7: to=<root@doris.blahblahblah.com>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
    May 20 15:52:49 doris postfix/qmgr[4329]: 84578141A7: removed
    May 20 15:52:49 doris amavis[2675]: (02675-06) Passed CLEAN, <root@doris.blahblahblah.com> -> <root@doris.blahblahblah.com>, Message-ID: <20140520052837.51BEE14257@doris.blahblahblah.com>, mail_id: 3tSBHrl1Zyxz, Hits: -0.001, size: 757, queued_as: 84578141A7, 4417 ms
    May 20 15:52:49 doris postfix/smtp[4865]: 51BEE14257: to=<root@doris.blahblahblah.com>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=33852, delays=33842/5.9/0.02/4.4, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02675-06, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 84578141A7)
    May 20 15:52:49 doris postfix/qmgr[4329]: 51BEE14257: removed
    May 20 15:56:06 doris postfix/scache[4873]: statistics: start interval May 20 15:52:45
    May 20 15:56:06 doris postfix/scache[4873]: statistics: domain lookup hits=0 miss=1 success=0%
    May 20 15:56:06 doris postfix/scache[4873]: statistics: address lookup hits=0 miss=1 success=0%
    May 20 15:56:06 doris postfix/scache[4873]: statistics: max simultaneous domains=1 addresses=1 connection=1
    May 20 15:57:49 doris postfix/smtpd[4746]: timeout after END-OF-MESSAGE from localhost[127.0.0.1]
    May 20 15:57:49 doris postfix/smtpd[4746]: disconnect from localhost[127.0.0.1]
    May 20 16:02:39 doris postfix/qmgr[4329]: DCB0F1424F: from=<root@doris.blahblahblah.com>, size=576, nrcpt=1 (queue active)
    May 20 16:02:45 doris postfix/smtpd[5150]: connect from localhost[127.0.0.1]
    May 20 16:02:45 doris postfix/smtpd[5150]: 41459141A7: client=localhost[127.0.0.1]
    May 20 16:02:45 doris postfix/cleanup[5153]: 41459141A7: message-id=<20140519180001.DCB0F1424F@doris.blahblahblah.com>
    May 20 16:02:45 doris postfix/smtpd[5150]: disconnect from localhost[127.0.0.1]
    May 20 16:02:45 doris postfix/qmgr[4329]: 41459141A7: from=<root@doris.blahblahblah.com>, size=1062, nrcpt=1 (queue active)
    May 20 16:02:45 doris amavis[2672]: (02672-04) Passed CLEAN, <root@doris.blahblahblah.com> -> <root@doris.blahblahblah.com>, Message-ID: <20140519180001.DCB0F1424F@doris.blahblahblah.com>, mail_id: E6zAKQXAs8x2, Hits: 0, size: 576, queued_as: 41459141A7, 5758 ms
    May 20 16:02:45 doris postfix/smtp[5143]: DCB0F1424F: to=<root@doris.blahblahblah.com>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=75763, delays=75758/0.06/0/5.8, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02672-04, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 41459141A7)
    May 20 16:02:45 doris postfix/qmgr[4329]: DCB0F1424F: removed
    May 20 16:02:45 doris postfix/local[5154]: 41459141A7: to=<root@doris.blahblahblah.com>, relay=local, delay=0.03, delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
    May 20 16:02:45 doris postfix/qmgr[4329]: 41459141A7: removed
    May 20 16:07:39 doris postfix/qmgr[4329]: EA29E1429D: from=<root@doris.blahblahblah.com>, size=535, nrcpt=1 (queue active)
    May 20 16:07:39 doris postfix/qmgr[4329]: F0D91142A0: from=<web4@doris.blahblahblah.com>, size=6396, nrcpt=1 (queue active)
    May 20 16:07:43 doris postfix/smtpd[5332]: connect from localhost[127.0.0.1]
    May 20 16:07:43 doris postfix/smtpd[5332]: 48054141A7: client=localhost[127.0.0.1]
    May 20 16:07:43 doris postfix/cleanup[5335]: 48054141A7: message-id=<dd35790d647d6ea5562ae5820e669827@www.mybusiness.com>
    May 20 16:07:43 doris postfix/smtpd[5332]: disconnect from localhost[127.0.0.1]
    May 20 16:07:43 doris postfix/qmgr[4329]: 48054141A7: from=<web4@doris.blahblahblah.com>, size=6894, nrcpt=1 (queue active)
    May 20 16:07:43 doris amavis[2672]: (02672-05) Passed CLEAN, <web4@doris.blahblahblah.com> -> <info@mybusiness.com>, Message-ID: <dd35790d647d6ea5562ae5820e669827@www.mybusiness.com>, mail_id: j0XfqNLb2nfr, Hits: -0.001, size: 6401, queued_as: 48054141A7, 3882 ms
    May 20 16:07:43 doris postfix/smtp[5326]: F0D91142A0: to=<info@mybusiness.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=227163, delays=227159/0.02/0/3.9, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02672-05, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 48054141A7)
    May 20 16:07:43 doris postfix/qmgr[4329]: F0D91142A0: removed
    May 20 16:07:43 doris postfix/smtp[5336]: 48054141A7: to=<info@mybusiness.com>, relay=ASPMX.L.GOOGLE.com[2a00:1450:400c:c03::1a]:25, delay=0.42, delays=0.02/0.01/0.03/0.37, dsn=2.0.0, status=sent (250 2.0.0 OK 1400598463 zb2si13118504wjc.16 - gsmtp)
    May 20 16:07:43 doris postfix/qmgr[4329]: 48054141A7: removed
    May 20 16:07:46 doris postfix/smtpd[5332]: connect from localhost[127.0.0.1]
    May 20 16:07:46 doris postfix/smtpd[5332]: D5061141A7: client=localhost[127.0.0.1]
    May 20 16:07:46 doris postfix/cleanup[5335]: D5061141A7: message-id=<20140517030417.EA29E1429D@doris.blahblahblah.com>
    May 20 16:07:46 doris postfix/smtpd[5332]: disconnect from localhost[127.0.0.1]
    May 20 16:07:46 doris postfix/qmgr[4329]: D5061141A7: from=<root@doris.blahblahblah.com>, size=1015, nrcpt=1 (queue active)
    May 20 16:07:46 doris amavis[2675]: (02675-07) Passed CLEAN, <root@doris.blahblahblah.com> -> <support@blahblahblah.com>, Message-ID: <20140517030417.EA29E1429D@doris.blahblahblah.com>, mail_id: xgyUF7ZVJQu9, Hits: -0.001, size: 535, queued_as: D5061141A7, 7468 ms
    May 20 16:07:46 doris postfix/smtp[5325]: EA29E1429D: to=<support@blahblahblah.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=302609, delays=302602/0.01/0/7.5, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02675-07, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as D5061141A7)
    May 20 16:07:46 doris postfix/qmgr[4329]: EA29E1429D: removed
    May 20 16:07:47 doris postfix/smtp[5336]: D5061141A7: to=<support@blahblahblah.com>, relay=ASPMX.L.GOOGLE.COM[2a00:1450:400c:c03::1a]:25, delay=0.68, delays=0.01/0/0.12/0.55, dsn=2.0.0, status=sent (250 2.0.0 OK 1400598467 kq9si13118799wjc.136 - gsmtp)
    May 20 16:07:47 doris postfix/qmgr[4329]: D5061141A7: removed
    May 20 16:12:39 doris postfix/qmgr[4329]: CD78A141A1: from=<root@doris.blahblahblah.com>, size=535, nrcpt=1 (queue active)
    May 20 16:12:39 doris postfix/qmgr[4329]: D703E1429F: from=<root@doris.blahblahblah.com>, size=757, nrcpt=1 (queue active)
    May 20 16:12:43 doris postfix/smtpd[5474]: connect from localhost[127.0.0.1]
    May 20 16:12:43 doris postfix/smtpd[5474]: E73D0141A7: client=localhost[127.0.0.1]
    May 20 16:12:43 doris postfix/cleanup[5477]: E73D0141A7: message-id=<20140517052859.D703E1429F@doris.blahblahblah.com>
    May 20 16:12:43 doris postfix/smtpd[5474]: disconnect from localhost[127.0.0.1]
    May 20 16:12:43 doris postfix/qmgr[4329]: E73D0141A7: from=<root@doris.blahblahblah.com>, size=1243, nrcpt=1 (queue active)
    May 20 16:12:43 doris amavis[2675]: (02675-08) Passed CLEAN, <root@doris.blahblahblah.com> -> <root@doris.blahblahblah.com>, Message-ID: <20140517052859.D703E1429F@doris.blahblahblah.com>, mail_id: 5FUjHW2kGmYF, Hits: -0.001, size: 757, queued_as: E73D0141A7, 4431 ms
    May 20 16:12:43 doris postfix/smtp[5468]: D703E1429F: to=<root@doris.blahblahblah.com>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=294224, delays=294220/0.02/0/4.4, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02675-08, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as E73D0141A7)
    May 20 16:12:43 doris postfix/qmgr[4329]: D703E1429F: removed
    May 20 16:12:43 doris postfix/local[5478]: E73D0141A7: to=<root@doris.blahblahblah.com>, relay=local, delay=0.03, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
    May 20 16:12:43 doris postfix/qmgr[4329]: E73D0141A7: removed
    May 20 16:12:48 doris postfix/smtpd[5474]: connect from localhost[127.0.0.1]
    May 20 16:12:48 doris postfix/smtpd[5474]: 1AD11141A7: client=localhost[127.0.0.1]
    May 20 16:12:48 doris postfix/cleanup[5477]: 1AD11141A7: message-id=<20140517052859.CD78A141A1@doris.blahblahblah.com>
    May 20 16:12:48 doris postfix/smtpd[5474]: disconnect from localhost[127.0.0.1]
    May 20 16:12:48 doris postfix/qmgr[4329]: 1AD11141A7: from=<root@doris.blahblahblah.com>, size=1015, nrcpt=1 (queue active)
    May 20 16:12:48 doris amavis[2672]: (02672-06) Passed CLEAN, <root@doris.blahblahblah.com> -> <support@blahblahblah.com>, Message-ID: <20140517052859.CD78A141A1@doris.blahblahblah.com>, mail_id: JphkKSr0ek4c, Hits: -0.001, size: 535, queued_as: 1AD11141A7, 8603 ms
    May 20 16:12:48 doris postfix/smtp[5467]: CD78A141A1: to=<support@blahblahblah.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=294228, delays=294220/0.02/0/8.6, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02672-06, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1AD11141A7)
    May 20 16:12:48 doris postfix/qmgr[4329]: CD78A141A1: removed
    May 20 16:12:48 doris postfix/smtp[5479]: 1AD11141A7: to=<support@blahblahblah.com>, relay=ASPMX.L.GOOGLE.COM[2a00:1450:400c:c03::1a]:25, delay=0.51, delays=0.01/0.01/0.03/0.46, dsn=2.0.0, status=sent (250 2.0.0 OK 1400598768 qb4si5498513wic.56 - gsmtp)
    May 20 16:12:48 doris postfix/qmgr[4329]: 1AD11141A7: removed
    May 20 16:17:39 doris postfix/qmgr[4329]: 0CF40135F2: from=<web9@doris.blahblahblah.com>, size=1972, nrcpt=1 (queue active)
    May 20 16:17:39 doris postfix/qmgr[4329]: 186D314250: from=<root@doris.blahblahblah.com>, size=535, nrcpt=1 (queue active)
    May 20 16:17:44 doris postfix/smtpd[5614]: connect from localhost[127.0.0.1]
    May 20 16:17:44 doris postfix/smtpd[5614]: 5AA4F141A1: client=localhost[127.0.0.1]
    May 20 16:17:44 doris postfix/cleanup[5617]: 5AA4F141A1: message-id=<c91cbd50b5b7e9c8b041941f1cfdb2f3@www.chiswickish.co.uk>
    May 20 16:17:44 doris postfix/smtpd[5614]: disconnect from localhost[127.0.0.1]
    May 20 16:17:44 doris postfix/qmgr[4329]: 5AA4F141A1: from=<web9@doris.blahblahblah.com>, size=2438, nrcpt=1 (queue active)
    May 20 16:17:44 doris amavis[2675]: (02675-09) Passed CLEAN, <web9@doris.blahblahblah.com> -> <mypersonaladdress@gmail.com>, Message-ID: <c91cbd50b5b7e9c8b041941f1cfdb2f3@www.chiswickish.co.uk>, mail_id: QqQTJ01Oa06S, Hits: -0.001, size: 1968, queued_as: 5AA4F141A1, 4690 ms
    May 20 16:17:44 doris postfix/smtp[5606]: 0CF40135F2: to=<mypersonaladdress@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=285939, delays=285935/0.01/0/4.7, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02675-09, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5AA4F141A1)
    May 20 16:17:44 doris postfix/qmgr[4329]: 0CF40135F2: removed
    May 20 16:17:45 doris postfix/smtp[5618]: 5AA4F141A1: to=<mypersonaladdress@gmail.com>, relay=gmail-smtp-in.l.google.com[2a00:1450:400c:c03::1b]:25, delay=0.73, delays=0.02/0.01/0.03/0.67, dsn=2.0.0, status=sent (250 2.0.0 OK 1400599065 uj7si13154061wjc.74 - gsmtp)
    May 20 16:17:45 doris postfix/qmgr[4329]: 5AA4F141A1: removed
    May 20 16:17:45 doris postfix/smtpd[5614]: connect from localhost[127.0.0.1]
    May 20 16:17:45 doris postfix/smtpd[5614]: A859E135F2: client=localhost[127.0.0.1]
    May 20 16:17:45 doris postfix/cleanup[5617]: A859E135F2: message-id=<20140519030418.186D314250@doris.blahblahblah.com>
    May 20 16:17:45 doris postfix/qmgr[4329]: A859E135F2: from=<root@doris.blahblahblah.com>, size=1015, nrcpt=1 (queue active)
    May 20 16:17:45 doris postfix/smtpd[5614]: disconnect from localhost[127.0.0.1]
    May 20 16:17:45 doris amavis[2672]: (02672-07) Passed CLEAN, <root@doris.blahblahblah.com> -> <support@blahblahblah.com>, Message-ID: <20140519030418.186D314250@doris.blahblahblah.com>, mail_id: 9oMV6XGeSBvO, Hits: -0.001, size: 535, queued_as: A859E135F2, 5998 ms
    May 20 16:17:45 doris postfix/smtp[5607]: 186D314250: to=<support@blahblahblah.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=130408, delays=130402/0.02/0/6, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02672-07, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A859E135F2)
    May 20 16:17:45 doris postfix/qmgr[4329]: 186D314250: removed
    May 20 16:17:47 doris postfix/smtp[5618]: A859E135F2: to=<support@blahblahblah.com>, relay=ASPMX.L.GOOGLE.COM[2a00:1450:400c:c03::1a]:25, delay=1.5, delays=0.01/0/0.03/1.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1400599067 fa2si5502464wib.94 - gsmtp)
    May 20 16:17:47 doris postfix/qmgr[4329]: A859E135F2: removed
     
    Last edited: May 20, 2014
  5. msp

    msp Member

    If there's anything you could do to help, I'd really love it. Do you offer any "premium" support as I'm happy to pay to have this particular problem properly solved :)
     
  6. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

Share This Page