Machine/template-fedora13: Difference between revisions
No edit summary |
No edit summary |
||
Line 144: | Line 144: | ||
* Replace sendmail with postfix | * Replace sendmail with postfix | ||
Create /etc/postfix/main.cf and paste the following into it replacing template-fedora13 with the new VM name | |||
smtpd_banner = $myhostname ESMTP $mail_name (Fedora) | smtpd_banner = $myhostname ESMTP $mail_name (Fedora) | ||
biff = no | biff = no | ||
# appending .domain is the MUA's job. | # appending .domain is the MUA's job. | ||
append_dot_mydomain = no | append_dot_mydomain = no | ||
# Uncomment the next line to generate "delayed mail" warnings | # Uncomment the next line to generate "delayed mail" warnings | ||
#delay_warning_time = 4h | #delay_warning_time = 4h | ||
readme_directory = no | readme_directory = no | ||
# TLS parameters | # TLS parameters | ||
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem | smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem | ||
Line 164: | Line 163: | ||
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache | smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache | ||
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache | smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache | ||
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for | # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for | ||
# information on enabling SSL in the smtp client. | # information on enabling SSL in the smtp client. | ||
#bernie | #bernie | ||
myhostname = template-fedora13.sugarlabs.org | myhostname = template-fedora13.sugarlabs.org | ||
Line 179: | Line 178: | ||
sugarlabs.org | sugarlabs.org | ||
relayhost = | relayhost = | ||
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 | mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 | ||
mailbox_size_limit = 0 | mailbox_size_limit = 0 | ||
Line 186: | Line 185: | ||
#bernie | #bernie | ||
home_mailbox = Maildir/ | home_mailbox = Maildir/ | ||
#bernie: as suggested by mostro | #bernie: as suggested by mostro | ||
smtpd_recipient_restrictions = | smtpd_recipient_restrictions = | ||
Line 201: | Line 200: | ||
reject_unlisted_recipient | reject_unlisted_recipient | ||
* | * Disable sendmail & enable postfix | ||
service sendmail stop | service sendmail stop | ||
Line 207: | Line 206: | ||
chkconfig sendmail off | chkconfig sendmail off | ||
chkconfig postfix on | chkconfig postfix on | ||
* Get all system mail forwarded to the systems-logs@ list | |||
cat >>/etc/aliases <__EOF__ | |||
#bernie | |||
root: systems-logs@lists.sugarlabs.org | |||
__EOF__ | |||
newaliases |