Hot answers tagged

2

Sendmail assumes that it is "very likely" that the connection came through an open http proxy. It would be "unwise" from spam prevention perspective to send standard "unrecognized command" reply and accept next SMTP commands. [It is implemented in srvrsmtp.c] HTTP proxy server may send/relay valid SMTP commands embedded into HTTP request. Without this ...


1

What you are describing is perfectly feasible, but Sendmail will produce a bounce message in this situation; that's part of the protocol design. The way to do this is to have Procmail abort with a suitable exit code, to communicate the bounce reason back to Sendmail. For example, to return a "user unknown" error, :0 * ^Received: from badhelo \(badhost ...


1

Have you considered using milter (e.g. MIMEDefang.org milter)? MIMEDefang behaviour is controlled by customizable perl scrip. It should be possible to get rejects in smtp session based on message content. It will also make the solution portable to other MTAs e.g. postfix. Classic MIMEDefang examples include rejecting messages with high SpamAssassin ...


1

I think that procmail acts as a local mailer which is run after the email is accepted. Basically, it is a next step in the delivery. So it can't affect the connection which is accepting the email to the sendmail process. Think about a different example when you send the email locally to another local user. It is first accepted to the sendmail process and if ...


1

You may use formail program to feed "one by one" messages in mailbox-file to program/script of your choice. Below please find elaborate example of using formail -s ... to process user system mailboxfile. It is provided in man procmail and makes procmail process every message in the system mailbox. #!/bin/sh ORGMAIL=/var/mail/$LOGNAME if cd $HOME ...


1

Could you please show us the telnet commands used to produce this issue? so that we can reproduce it and fix it. By the way, iRedMail team offers very active support on the online support forum: http://www.iredmail.org/forum/ it's better to ask for support in the forum.



Only top voted, non community-wiki answers of a minimum length are eligible