Please bear with me as I'm not an expert admin
I have a linux mail server that has been running for a couple of years and now all of a sudden a certain user is unable to send emails. They immediately get a response from "System Administrator" saying
501 5.5.4 error bad notify parameter syntax
This only happens for this user and only on their computer. It works fine in Thunderbird but not in Outlook 2013. Other users can use Outlook 2013 with no problem.
I watched the log and this is what it says when this user attempts to send email
replacing command "RCPT TO: <myemail@gmail.com> NOTIFY=SUCCESS,FAILURE,DELAY" with "RCPT TO: <myemail@gmail.com> NOTIFY=SUCCESS,FAILURE,DELAY NOTIFY=NEVER"
I've checked for any Outlook rules that could be adding headers, disabled email virus scanner, re-added account, etc.
I've been reading and it appears that NOTIFY=NEVER can not be mixed with any other NOTIFY commands
I have a smtpd_command_filter setup like this
/^(RCPT\s+TO:<.*>.*)\s+NOTIFY=\S+(.*)/ $1 NOTIFY=NEVER$2
/^(RCPT\s+TO:.*)/ $1 NOTIFY=NEVER
I'm not good with regular expressions but I'm guessing it's not parsing the original command correctly and is adding NOTIFY=NEVER to the end instead of replacing it.
In the meantime I have commented that out, which sends a "your message has been sucessfully delivered" notice back to the sender. I silenced that by adding
smtpd_discard_ehlo_keywords = silent-discard, dsn
to main.cf
Are my new settings okay or do I need to fix the original problem, which I'm guessing is in the regular expression? Any ideas?