i followed instructions on this page https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto setting mailserver with virtual mailbox and everything works ok The problem is that authentication and relaying mails doesn't work when I try to send mails outside local network I get Relay access denied error here is log from mail.log connect from ******[*******] setting up TLS connection from *****[*****] Anonymous TLS connection established from *****[*****]: TLSv1 with cipher AES128-SHA (128/128 bits) NOQUEUE: reject: RCPT from *****[*****]: 554 5.7.1 <*****@gmail.com>: Relay access denied; from=<*****> to=<*****@gmail.com> proto=ESMTP helo=<*****> any ideas
Check to make sure you have Authentication setup for the Outgoing server in your email client. If your not authenticating with a username and password you will get relay access denied.