Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

postfix question

  • 22-10-2002 2:31pm
    #1
    Closed Accounts Posts: 5,564 ✭✭✭


    I am using regexp on a postfix body_checks and header_checks file to reject messages with windows executables attached so the clueless can do less damage to the machines on my network.

    Anyway rather than having postfix simply reject these messages I'd like it if it could send an email back saying
    "Your messages has been rejected due to blah,blah,blah".

    Is this doable?

    edit:

    /etc/postfix/main.cf
    body_checks = regexp/etc/postfix/body_checks.

    /etc/postfix/body_checks

    /(filename|name)=".*\.(au|bat|chm|cmd|com|css|dll|dot|exe|hlp|hta|exe|hlp|jse|lnk|ocx|pak|pif|pps|scr|sct|shs|src|vbe|vbs|vxd|wsh)"/ REJECT

    Anyway I was wondering if there was some way I could send a corresponding message from postfix saying "blah blah blah" for mail I reject?


Comments

  • Closed Accounts Posts: 3,859 ✭✭✭logic1


    Hmm not sure type haven't that much exp. with postfix. I know there's a relocation_map on it that will auto respond with info on how to find relocated users and things like that so I'm sure the ability for it to auto send mail is there under certain rulesets. Not sure how you'd apply that to bounced mail though.

    .logic.


Advertisement