#15 Option to specify reject message

v0.2.10
closed-accepted
5
2006-04-20
2006-04-06
No

Please consider adding an option to specify a string
that can override the hard-coded "Rejected due to %s
policy for sender %s" string. The override should
include placeholders that allow insertion of the
following:

* IP address (variable 'ip' exists for this)
* Rejection type ("SPF" or "Sender-ID")
* Bad address (variable 'badaddr' exists for this)

This would allow the sysadmin to specify a rejection
message template such as:

Mail from {ip} rejected due to {sid_check} policy for
sender {sender} - see http://www.openspf.org/why.html?
sender={sender}&ip={ip}

Which might expand to:

Mail from 127.0.0.1 rejected due to SPF policy for
sender foo@bar.com - see
http://www.openspf.org/why.html?
sender=foo@bar.com&ip=127.0.0.1

In addition to giving the sending client a more
useful message, this also gives the sysadmin a single
logfile line to aid in parsing.

Discussion

  • Anonymous - 2006-04-12
    • assigned_to: nobody --> sm-msk
     
  • Anonymous - 2006-04-12

    Logged In: YES
    user_id=1048957

    I have a patch for this available now, if you'd like to test
    it let me know and I'll attach it to this bug.

     
  • Morgan Davis

    Morgan Davis - 2006-04-13

    Logged In: YES
    user_id=1495635

    Great, please attach the patch and I'll test it out.

     
  • Anonymous - 2006-04-20
    • status: open --> closed-accepted
     
  • Anonymous - 2006-04-20

    Logged In: YES
    user_id=1048957

    Done for v0.2.11, now released.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks