Koozali.org: home of the SME Server

Mail receipt problem - solved

Offline edform

  • *
  • 178
  • +0/-0
    • http://www.workgroupsolutions.co.uk
Mail receipt problem - solved
« on: January 02, 2012, 09:21:54 AM »
I use Zoneedit for DNS services and mail backup on several domains. Some time ago, Zoneedit began migrating all of their customer accounts to a new system and my account was recently migrated. When I tried to login to my account I was shown a notice telling me that I needed to use the forgotten password system to set a new password on the account and I did so. I did not receive the email sent out by the system.

I have now run through this routine a dozen times, and raised queries with Zoneedit support but am getting nowhere. This morning I tried to diagnose what is going wrong and found this response sequence in /var/log/qpsmtpd/current

************************************
2012-01-02 07:55:59.305408500 23164 Accepted connection 0/40 from 216.34.94.182 / smtp.dnsvr.com
2012-01-02 07:55:59.305647500 23164 Connection from smtp.dnsvr.com [216.34.94.182]
2012-01-02 07:55:59.311344500 23164 tls plugin (init): ciphers: ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
2012-01-02 07:55:59.319002500 23164 tls plugin (init): ciphers: ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
2012-01-02 07:55:59.346993500 23164 tls plugin (init): ciphers: ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
2012-01-02 07:56:00.361942500 23164 check_earlytalker plugin (connect): remote host said nothing spontaneous, proceeding
2012-01-02 07:56:00.366865500 23164 220 mini-itx.theformsonline.com ESMTP
2012-01-02 07:56:00.536633500 23164 dispatching EHLO smtp.dnsvr.com
2012-01-02 07:56:00.541721500 23164 250-theformsonline.com Hi smtp.dnsvr.com [216.34.94.182]
2012-01-02 07:56:00.541822500 23164 250-PIPELINING
2012-01-02 07:56:00.541908500 23164 250-8BITMIME
2012-01-02 07:56:00.542004500 23164 250-SIZE 15000000
2012-01-02 07:56:00.542092500 23164 250 STARTTLS
2012-01-02 07:56:00.713028500 23164 dispatching MAIL FROM:<support@zoneedit.com> SIZE=4692
2012-01-02 07:56:00.713548500 23164 full from_parameter: FROM:<support@zoneedit.com> SIZE=4692
2012-01-02 07:56:00.746211500 23164 getting mail from <support@zoneedit.com>
2012-01-02 07:56:00.746394500 23164 250 <support@zoneedit.com>, sender OK - how exciting to get mail from you!
2012-01-02 07:56:00.746756500 23164 dispatching RCPT TO:<ed.form@workgroupsolutions.co.uk>
2012-01-02 07:56:00.752380500 23164 check_goodrcptto plugin (rcpt): stripping '-' extensions
2012-01-02 07:56:00.759029500 23164 250 <ed.form@workgroupsolutions.co.uk>, recipient ok
2012-01-02 07:56:00.759341500 23164 dispatching DATA
2012-01-02 07:56:00.760390500 23164 354 go ahead
2012-01-02 07:56:01.127697500 23164 spooling message to disk
2012-01-02 07:56:01.304140500 23164 logging::logterse plugin (deny): ` 216.34.94.182   smtp.dnsvr.com   smtp.dnsvr.com   <support@zoneedit.com>   <ed.form@workgroupsolutions.co.uk>   check_basicheaders   901   Mail with no Date header not accepted here   msg denied before queued
2012-01-02 07:56:01.304408500 23164 552 Mail with no Date header not accepted here
2012-01-02 07:56:01.474993500 23164 dispatching QUIT
2012-01-02 07:56:01.475470500 23164 221 theformsonline.com closing connection. Have a wonderful day.
2012-01-02 07:56:01.475638500 23164 click, disconnecting
2012-01-02 07:56:02.264996500 3321 cleaning up after 23164
**************************

It appears that...

1. The SME qmail system won't handle messages with no date headers.

When I raise queries via the online query form in the support section of www.zoneedit.com I receive the auto-response message and the support team's messages perfectly. I have reported my new information about the problem to Zoneedit support but I'm not hopeful that they will be able to do anything.

Can anyone advise a way to get round this problem?

Ed Form
« Last Edit: January 03, 2012, 03:02:32 PM by edform »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Mail receipt problem
« Reply #1 on: January 02, 2012, 09:49:33 AM »

Offline edform

  • *
  • 178
  • +0/-0
    • http://www.workgroupsolutions.co.uk
Re: Mail receipt problem
« Reply #2 on: January 02, 2012, 10:31:17 AM »
http://wiki.contribs.org/Email#Default_Plugin_Configuration
check_basicheaders is the answer :-)

Thanks for that Stefano.

How can I set check_basic headers to disabled for as long as it takes me to run the Zoneedit forgotten password routine and receive the mail it sends? Then how do I reset it to enabled?

Ed Form

Offline edform

  • *
  • 178
  • +0/-0
    • http://www.workgroupsolutions.co.uk
Re: Mail receipt problem
« Reply #3 on: January 02, 2012, 05:51:38 PM »
Thanks for that Stefano.

How can I set check_basic headers to disabled for as long as it takes me to run the Zoneedit forgotten password routine and receive the mail it sends? Then how do I reset it to enabled?

Ed Form

Can anyone else advise how to temporarily turn off the check_basicheaders plugin to qpsmtpd?

Ed Form

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Mail receipt problem
« Reply #4 on: January 02, 2012, 09:34:32 PM »
Ed, please use the "search" link above, thank you :-)

http://forums.contribs.org/index.php/topic,34260.0.html

Offline edform

  • *
  • 178
  • +0/-0
    • http://www.workgroupsolutions.co.uk
Re: Mail receipt problem
« Reply #5 on: January 03, 2012, 12:24:39 AM »
Ed, please use the "search" link above, thank you :-)

http://forums.contribs.org/index.php/topic,34260.0.html

It doesn't work in SME8.0b7. I tried exactly as detailed in the thread and in the corresponding bugzilla bug [which are to do with 7.0 and the variation needed for 7.1] - no go!

Then I located the corresponding stuff in SME 8.0 which seems to be in /etc/e-smith/templates/var/service/qpsmtpd/peers/0/ or /etc/e-smith/templates/var/service/qpsmtpd/peers/local/ so I altered the directory entry to both /etc/e-smith/templates-custom/var/service/qpsmtpd/peers/0/ and /etc/e-smith/templates-custom/var/service/qpsmtpd/peers/local/ in turn and again, it did not work.

Anyone else have any advice?

Ed Form

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Mail receipt problem
« Reply #6 on: January 03, 2012, 01:18:43 PM »
Take a look at /var/service/qpsmtpd/config/peers/0 on your system - you need to edit or remove the line that says 'check_basicheaders'.

I think the forum post referenced above pre-dates the SME 7.x move to use of the qpsmtpd 'peers' plugin, so it modifies /var/service/qpsmtpd/config/plugins instead of /var/service/qpsmtpd/config/peers/0 or /var/service/qpsmtpd/config/peers/local.

The instructions on the wiki email page at I can't receive/send email from my application (ACT!, vTiger, MS Outlook, etc) should work on your SME8 system - you're trying to affect 'check_basicheaders' for the external interface:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0
cd /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0
echo "# 17check_basicheaders disabled by custom template" > \
17check_basicheaders
signal-event email-update


Offline edform

  • *
  • 178
  • +0/-0
    • http://www.workgroupsolutions.co.uk
Re: Mail receipt problem
« Reply #7 on: January 03, 2012, 02:00:54 PM »
Take a look at /var/service/qpsmtpd/config/peers/0 on your system - you need to edit or remove the line that says 'check_basicheaders'.

I think the forum post referenced above pre-dates the SME 7.x move to use of the qpsmtpd 'peers' plugin, so it modifies /var/service/qpsmtpd/config/plugins instead of /var/service/qpsmtpd/config/peers/0 or /var/service/qpsmtpd/config/peers/local.

The instructions on the wiki email page at I can't receive/send email from my application (ACT!, vTiger, MS Outlook, etc) should work on your SME8 system - you're trying to affect 'check_basicheaders' for the external interface:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0
cd /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0
echo "# 17check_basicheaders disabled by custom template" > \
17check_basicheaders
signal-event email-update

OK!!! I solved this.

The first thing to note is that the instructions I have been given, all of which end in 'signal-event email-update' do not work. It is necessary to reboot the server before the instruction is incorporated into the runtime conditions. This is not mentioned anywhere.

Second: I cheated. I altered the code of the plugin 'check_basic headers' in '/usr/share/qpsmtpd/plugins', replacing all of the 'DENY' instructions with 'DECLINED'. Then I ran 'signal-event email-update' and 'signal-event reboot' and when I ran the Zoneedit forgotten password routine I immediately received their email.

Then I copied a saved version of the 'check_basic headers' plugin back in place of my altered version and gave the same two 'signal-event' instructions to put my system back to normal.

I realise now that the method advised in the forum would also have worked if I had realised I had to reboot the machine.

Problem solved.

Do I need to raise a bug about this?

Ed Form

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Mail receipt problem
« Reply #8 on: January 03, 2012, 02:52:12 PM »
I realise now that the method advised in the forum would also have worked if I had realised I had to reboot the machine.

I'm quite certain that you did not need to reboot the machine.

Quote
Problem solved.

Please edit the "Subject" of the thread.

Quote
Do I need to raise a bug about this?

Yes. You also should complain vociferously to Zoneedit and keep at them until they fix their system.

Offline edform

  • *
  • 178
  • +0/-0
    • http://www.workgroupsolutions.co.uk
Re: Mail receipt problem - solved
« Reply #9 on: January 03, 2012, 04:27:37 PM »
I'm quite certain that you did not need to reboot the machine.

I have now checked this out following the instructions in mmccarn's message and you are, as usual, correct.

Quote
Please edit the "Subject" of the thread.

Done

Quote
Yes. You also should complain vociferously to Zoneedit and keep at them until they fix their system.

Both done. The new bug is 6824. Will continue to chase Zoneedit: They're a DNS service and should definitely know better.

Ed Form

Offline edform

  • *
  • 178
  • +0/-0
    • http://www.workgroupsolutions.co.uk
Re: Mail receipt problem - solved
« Reply #10 on: January 05, 2012, 11:35:31 AM »

Both done. The new bug is 6824. Will continue to chase Zoneedit: They're a DNS service and should definitely know better.

Ed Form

It being pretty uncommon for the big operators to listen to and act upon ideas from us great unwashed, I was delighted to get an email from Zoneedit this morning with this information...

        Case Comment(s) (if applicable):
        We have issued a fix and it should be deployed shortly
        is what my tier 2 says.

Ed Form

Offline axessit

  • *****
  • 213
  • +0/-0
Re: Mail receipt problem - solved
« Reply #11 on: December 18, 2013, 03:30:07 AM »
I know this is an old thread, but have just been faced with a problem when changing our ISP, and all our server monitoring, voicemail emails, scanning to email etc has stopped as all the smtp settings need reconfiguring. Decided to put everything through a local SME server so I only need to then change one outgoing SMTP address in case we change back (in the event of our main ISP going down, I can flick over to the backup one).

Was getting "Mail with no date header not accepted here", so did the template mod as shown on the config/peers/0 and that changed the config file, but was still getting the message. Had to create and copy the same template fragment to /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local as well - just in case anyone is searching the forum for the same thing.

Just so you know.