Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

Looking for a qmail-smtpd patch

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


toni at solu

Dec 14, 2009, 6:59 AM

Post #1 of 5 (1898 views)
Permalink
Looking for a qmail-smtpd patch

Hi All,

I'm looking for a patch that would enable me to exit from qmail-queue
with exit code of 31 or similar and give reason to the SMTP-client
instead of the default "mail server permanently rejected message (#5.3.0)".

Wonder if such exists or are there any other alternatives for
qmail-smtpd that would enable me to give more fine grained error
messages during SMTP-session?

Thanks in advance,
Toni


ar-djblists at acrconsulting

Dec 14, 2009, 7:25 AM

Post #2 of 5 (1798 views)
Permalink
Re: Looking for a qmail-smtpd patch [In reply to]

On Monday 14 December 2009 14:59:26 Toni Mattila wrote:
> I'm looking for a patch that would enable me to exit from qmail-queue
> with exit code of 31 or similar and give reason to the SMTP-client
> instead of the default "mail server permanently rejected message (#5.3.0)".
>
> Wonder if such exists or are there any other alternatives for
> qmail-smtpd that would enable me to give more fine grained error
> messages during SMTP-session?

This sounds like my spamrefuse patch, or Erwin Hoffmann's QHPSI patch, the
former aimed at SpamAssassin refusal (above a certain threshold), the latter
at clamd refusal:

http://free.acrconsulting.co.uk/email/spamrefuse.html
http://www.fehcom.de/qmail/qmail.html##qhpsi

Both patches can be combined to provide refusal according to SA and clamd
results. The basic idea behind both patches is to expand the possible results
from qmail-queue and then how qmail[-smtpd] acts as a result - you can trigger
a permanent (5xx) or a temporary (4xx) failure... you could clearly use this
approach to roll-your-own if you're checking something else.

cheers,

Andrew.
--
====================================================================
* Custom email solutions * Systems Administration * Networking
http://www.acrconsulting.co.uk/email/qmail.html
====================================================================


toni at solu

Dec 14, 2009, 7:38 AM

Post #3 of 5 (1802 views)
Permalink
Re: Looking for a qmail-smtpd patch [In reply to]

Hi,

Andrew Richards wrote:
> This sounds like my spamrefuse patch, or Erwin Hoffmann's QHPSI patch, the
> former aimed at SpamAssassin refusal (above a certain threshold), the
> latter
> at clamd refusal:
> http://free.acrconsulting.co.uk/email/spamrefuse.html

This one just adds new exit code 32 with static refusal reason.

> http://www.fehcom.de/qmail/qmail.html##qhpsi

This one just exits with code 31 so you get that standard error message.

So still looking for a patch where you could specify the string that is
after 5xx code to the smtp client during smtp session.

To recap I have already program that is run using QMAILQUEUE env
variable before the real qmail-queue and it exits with 31 if we want to
refuse the message during smtp session.

I just want to provide more user friendly and/or specific refusal reason
in case message is sent by human instead of spambot.

Thanks,
Toni


mbhangui at gmail

Dec 14, 2009, 7:56 AM

Post #4 of 5 (1793 views)
Permalink
Re: Looking for a qmail-smtpd patch [In reply to]

On Mon, Dec 14, 2009 at 8:29 PM, Toni Mattila <toni [at] solu> wrote:

> Hi All,
>
> I'm looking for a patch that would enable me to exit from qmail-queue with
> exit code of 31 or similar and give reason to the SMTP-client instead of the
> default "mail server permanently rejected message (#5.3.0)".
>
> *qmail-queue-custom-error.patch* from Flavio Curti
Allows qmail-queue to exit using custom error-messages, which can be
displayed on SMTP connections.
See file *README.qq-custom-error* after patching for details.
https://no-way.org/qmail-error/


--
Regards Manvendra - http://www.indimail.org


toni at solu

Dec 14, 2009, 8:00 AM

Post #5 of 5 (1807 views)
Permalink
Re: Looking for a qmail-smtpd patch [In reply to]

Hi all,

Manvendra Bhangui wrote:
> /qmail-queue-custom-error.patch/ from Flavio Curti
> https://no-way.org/qmail-error/

This is perfect. Thank you very much!

Best Regards,
Toni

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.