block user to send mail

Discussion in 'HOWTO-Related Questions' started by Apiez, Sep 2, 2016.

  1. Apiez

    Apiez New Member

    hello guys, i need your help. my problem is, i want to block user to send mail. i do anything but that user still can send mail. how can i do to block that user to send mail. my services that i create is sendmail and dovecot
     
  2. sjau

    sjau Local Meanie Moderator

    That user is probably using php to send email.

    Edit your php.ini and add those two lines:

    Code:
    mail.add_x_header = On
    mail.log = /var/log/phpmail.log
    
    Then you can see if that user is really sending mails through php. If so, you could then disable php mail for that user.
     

Share This Page