Postfix: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Show content of email queue == {{Root|mailq}} == Try to deliver email queue == {{Root|postqueue -f}} == Delete an email from email queue == {{Root|postsuper -d mailid}}..." |
No edit summary |
||
| Line 30: | Line 30: | ||
== Test == | == Test == | ||
{{Root|echo -e "Subject: Test\nContent" | sendmail -v yourmail@domain.local}} | {{Root|<nowiki>echo -e "Subject: Test\nContent" | sendmail -v yourmail@domain.local</nowiki>}} | ||
{{Root|echo -e "Subject: Test\nContent" | sendmail -v root}} | {{Root|<nowiki>echo -e "Subject: Test\nContent" | sendmail -v root</nowiki>}} | ||
Latest revision as of 18:13, 14 November 2013
Show content of email queue
# mailq
Try to deliver email queue
# postqueue -f
Delete an email from email queue
# postsuper -d mailid
Configuration
File: /etc/postfix/main.cf
mydomain = domain.local myorigin = $mydomain inet_interfaces = localhost relayhost = [relay.domain.local]
File: /etc/aliases
root: yourmail@domain.local
# newaliases
Test
# echo -e "Subject: Test\nContent" | sendmail -v yourmail@domain.local
# echo -e "Subject: Test\nContent" | sendmail -v root