Just wondering whether anyone has experienced a similar problem and can offer a fix? It involves mails sent to an invalid domain/email address via a smart host.
The problem is that when an invalid email gets sent out, our smart host rejects the email (450 Recipient rejected) but instead of sending a bounce email to the sender, the rejected email gets added to the mail queue. Which continually retries until the message expires from the queue.
The problem with this is that the user is not informed that the email address is wrong until 7 days later, which shouldn't be the correct behaviour...
The steps to get this happening is, on a server w/ a smart host configured:
1. Send a message to non existant domain, eg aslkfj@aakjehsddfwer.au
2. Look at the Scalix + smart hosts' mail logs
3. look at the sendmail queue on scalix, using 'mailq'
Scalix maillog:
May 21 10:19:57 scalix sendmail[27535]: l4L0JvTl027531: to=<aslkfj@aakjehsddfwer.au>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=120247, relay=<smarthost>. [<smarthost ip>], dsn=4.2.0, stat=Deferred: 450 <aslkfj@aakjehsddfwer.au>: Recipient address rejected: Domain not found
Smarthost maillog:
May 21 10:19:57 smarthost postfix/smtpd[23712]: NOQUEUE: reject: RCPT from <scalix server>: 450 <aslkfj@aakjehsddfwer.au>: Recipient address rejected: Domain not found; from=<user@example.org> to=<aslkfj@aakjehsddfwer.au> proto=ESMTP helo=<scalix server>
mailq output on scalix server:
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
l4L0JvTl027531 0 Mon May 21 10:19 <user@example.org>
(Deferred: 450 <aslkfj@aakjehsddfwer.au>: Recipient address r)
<aslkfj@aakjehsddfwer.au>