On a server when you enable SMTP(S) in postfix master.cf
file, you may have one or more of the following errors. The reason for these errors is that the definition of the SMTP(S) ports in /etc/services
is missing.
Postfix - Errors and solution
Possible encountered errors
You may have one or more of the following errors:
# /path/to/mail_script.sh |
Services file
Open your /etc/services
file and add the following ports definition:
# vi /etc/services |
Then restart postfix:
# /etc/init.d/postfix restart |
Simple test
Simply send a test mail with the following command:
# echo "test" | mailx -v -s TEST -S smtp=mail.mydivision.company.org -S from="[email protected]" [email protected] |