# it might work in /etc/aliases, but this seems more proper.
if s grep amazonaws /etc/postfix/sasl_passwd &>/dev/null; then
- forward=$HOSTNAME@$PERSONAL_DOMAIN
-else
forward=$HOSTNAME@$IMPERSONAL_DOMAIN
+else
+ forward=$HOSTNAME@$PERSONAL_DOMAIN
fi
e $forward > ~/.forward
e $forward | s tee /root/.forward
smtp_tls_security_level = secure
message_size_limit = 20480000
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
+inet_protocols = ipv4
EOF
-# ^ I ran into a log file not sending cuz of size. double from 10 to 20 meg limit
+# msg_size_limit: I ran into a log file not sending cuz of size. double from 10 to 20 meg limit
+# inet_protocols: without this, postfix tries an ipv6 lookup then gives
+# up and fails. snippet from syslog: type=AAAA: Host not found, try again
+
s postmap hash:/etc/postfix/sasl_passwd
# offlineimap uses this too, it is much easier to use one location than to