So we upgraded from 10.5.8 Mail server to 10.6.2 and everything went very smoothly. Mailstores were migrated and the transition from Cyrus to Dovecot was great. However once all the email was moved over and all the settings were double, and triple checked. People started complaining that every once in a while their email was not getting through the server, it was getting bounced back to the sender. At first I thought that it was an internal issue with the users on our network, then I got a complaint from someone from outside the organization trying to send an email to one of our users.
Great, another strange Apple bug I thought until someone was able to forward me the bounced email to my personal email account. Further insight in the error showed that the message was getting bounced back due to a blank subject line. As you can see from the example below its due to a blank or empty subject heading. Yes, apparently Apple has added this as an actual “Feature”. You can turn this off however by commenting out the only line of code in the file /etc/postfix/custom_header_checks.
=====================================
This is the mail system at host mail.xxxxxxx.org.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<user@domain.org>: host
mail.domain.org https://xx.xxx.xxx.xxx said: 550 5.7.1 empty subject
=====================================Turn off the mail service before you do this. Once the mail service is off edit the file using sudo pico.
/^subject: *$/ REJECT empty subject header in /etc/
into:
#/^subject: *$/ REJECT empty subject header in /etc/Start mail back up again and you will notice that the blank subject line blues are gone away.
Related Posts
Stay off of blacklists: Limit postfix recipients
“I just setup a new server and within days we were on a corporate email blacklist, I contacted the company in question and asked why are we on your blacklist, why won’t...
Better Quota notifications for OSX Server
One such service is the topic today, Dovecot. Dovecot is integrated with Server Admin, Apples GUI Server Administration tool. You can set two different kind of notifications to trigger here, a quota...
10.6.8 Server high CPU usage, hwmond culprit
{% highlight bash %} sudo launchctl unload /System/Library/LaunchDaemons/com.apple.hwmond.plist{% endhighlight %}
OSX Server Mailman Tricks
1. Migrating Mailman data from one server to another. I had many problems making sure that mailing lists, users, and archives were preserved when moving from our old server to our new...
10.6.2 Dovecot Mail Backups
The one great thing about 10.5.8 was the development of Mailbfr this was an amazing script that would help you backup your entire mailstore, recover email accounts, repair quotas, and of course...
10.6.2 Squirrelmail, LDAP & Sieve
To start with you must enable Sieve on your server to do this, start Server Admin, Mail > Settings > Advanced: Tick “PLAIN” on IMAP/POP and save it. Mail > Settings >...
10.6.2 Roundcube & LDAP
I found Roundcube to be extremely easy to setup, however sort of hard to configure and tweak for use on an OSX Server. The biggest drawback to the old mail system was...
10.5.8 Server Upgrade : Mail
setup the 10.6.2 Snow Leopard server clean before I did anything I setup DNS on the server and manually retyped and rechecked all of the DNS records from the 10.5 server to...