Starting and Stopping Sendmail with FreeBSD
Management of sendmail is done on FreeBSD by changing to sendmail’s directory (/etc/mail) and running "make" followed by the appropriate command. This either needs to be done as root or using sudo.
Email was the first “killer app” of the early Internet and today millions of emails are sent every day using a variety of emails servers such as postfix and sendmail. This section looks at how to use and configure email servers for sending and receiving email, mail filtering with services such as maildrop and procmail, and POP and IMAP servers such as Courier IMAP and Dovecot.
Management of sendmail is done on FreeBSD by changing to sendmail’s directory (/etc/mail) and running "make" followed by the appropriate command. This either needs to be done as root or using sudo.
The most obvious way to discard mail to a particular alias with the exim4 mail server is to send it to /dev/null, but unless file_transport is set in the exim configuration it won’t work. You can use :blackhole: instead.
You've checked to see what's sitting in the exim mail queue, but want to check the email's header and/or body before deleting it from the queue. Use the -Mvh & -Mvb flags to view these.
This post shows how to delete a single message from the exim mail queue and also how to remove all of them using the exim command line tools.
I have the exim mail server running on one of my customer’s webservers. Their internal mail server hadn’t been accepting mail overnight so they hadn’t got a whole bunch of important emails from the webserver and I needed to flush the exim mail queue. A quick read of the exim man page answered my question about how to do this and I thought I’d write a quick post to show how to flush the exim mail queue.
While trying to troubleshoot why email wasn’t being delivered to one of my mail aliases on a new server this morning, I discovered a nifty little trick for testing the deliverability of an email address using exim from the command line.