分页: 1 / 1

《NetBSD指南-26.5.Strategy for sending mail》

发表于 : 2010-03-08 1:57
leo
When mail has been written and “sent” with mutt, the messages must be transferred to the provider with postfix. Mail is sent from mutt with the y command, but this does not really send it; the messages are enqueued in the spool area; if postfix is not active as a daemon it is necessary to start it manually or the messages will remain on the hard disk. The necessary steps are:
  • 1. Write mail with mutt, send it and exit mutt. You can check if and what messages are in the postfix mail queue using the mailq(1) program.
  • 2. Activate the connection with the provider.
  • 3. If your provider requires you to do "SMTP-after-POP", i.e. it first wants to make sure to know who you are before you are allowed to send mail (and no spam), you need to run fetchmail again first.
  • 4. Write the command /usr/sbin/postfix flush to transfer the queued messages to the provider.
  • 5. Deactivate the connection when the queue is empty.