User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sendmail [2011/11/28 13:32]
k2patel [Rebuild aliases]
sendmail [2011/12/29 09:26] (current)
k2patel [How to change outbound IP]
Line 18: Line 18:
 </​code>​ </​code>​
 OR\\ OR\\
-run '​make'​ in /etc/mail to update all databases +run '​make'​ in /etc/mail to update all databases\\ 
 <code bash> <code bash>
 sendmail -bi sendmail -bi
Line 47: Line 47:
 NOTE : change with your IP. NOTE : change with your IP.
 +==== Clear queue ====
 +Check if you want to delete all mail.
 +<code bash>
 +sendmail -bp
 +Now if you want to delete everything in queue just delete everything inside mqueue folder.\\
 +In CentOS it is located at **/​var/​spool/​mqueue/​**
 +<code bash>
 +rm -rf /​var/​spool/​mqueue/​*
 +If there is too many files to remove you better use option like xargs with find.
 +<code bash>
 +find /​var/​spool/​mqueue -name * -print0 |xargs -0 -r -n100 rm
sendmail.1322505154.txt.gz · Last modified: 2011/11/28 13:32 by k2patel