LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to Block sending mails via telent in postfix (http://www.linuxquestions.org/questions/linux-networking-3/how-to-block-sending-mails-via-telent-in-postfix-886684/)

amratta 06-16-2011 05:57 AM

How to Block sending mails via telent in postfix
 
Hi,

I implemented postfix as mail gateway but i need to block the ability to send
mails via telnet

How can i achive this????Please help me

droyden 06-16-2011 07:24 AM

You can't, the mta has no way of knowing what is being used to send the email ie telnet .in this case.

tarek_elnozahy 03-10-2012 08:54 AM

Reject mails on Postfix via telnet session
 
I think you can develop a cleanup filter (header_checks for example) that checks if the message-id contains @myhostname.mydomain .
This hasn't been tested and also it will reject some of the NDRs.


All times are GMT -5. The time now is 05:35 AM.