- In Linux servers if there are a lot of emails in the queue "over 100" emails. you can check if there is a spam
~#exim -bp
To get a list of emails that are in the queue
~#exim -Mvh MessageID
Will display the message content and by checking the field "auth_id" in the header you can identify the email account that sending spam. if this field does not exist i the header, you can enable it be adding mail header in php.ini as follows:
mail.add_x_header = On
And mail log as follows:
mail.log = /var/log/phpmail.log
More usefull information can be found on the link below on how mail works:
http://www.physics.udel.edu/~bnikolic/teaching/phys660/RUTE/rute/node33.html
~#exim -bp
To get a list of emails that are in the queue
~#exim -Mvh MessageID
Will display the message content and by checking the field "auth_id" in the header you can identify the email account that sending spam. if this field does not exist i the header, you can enable it be adding mail header in php.ini as follows:
mail.add_x_header = On
And mail log as follows:
mail.log = /var/log/phpmail.log
More usefull information can be found on the link below on how mail works:
http://www.physics.udel.edu/~bnikolic/teaching/phys660/RUTE/rute/node33.html