Re outgoing mail via gmail. I haven't used gmail for a while but when I did I used this as the last line of my /mail/lib/remotemail.
# exec /bin/upas/smtp -d -a -h quintile.net net!smtp.gmail.com quint...@gmail.com $* You will also need to set up your TLS certificate, I think this is covered in the wiki, but roughly take the thumbprint which will be logged somwhere in /sys/log/ - mail I think, the first time you try it. Then put this thumbprint into /sys/lib/tls/mail. I made no changed to rewrite for outgoing mail. You may also want to add some header lines (particularly a From: line with your full name) to /mail/box/$user/headers. -Steve