we are using Postfix 2.11.3 on Ubuntu 15.10
Here is configuration file:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = server.ip-5.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
virtual_alias_domains =
virtual_alias_maps = hash:/etc/postfix/virtual
myorigin = /etc/mailname
mydestination = $mydomain
mynetworks = 0.0.0.0
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
home_mailbox = Maildir/
soft_bounce = yes
header_checks = regexp:/etc/postfix/header_checks
smtpd_relay_restrictions = permit_mynetworks, reject_unauth_destination,permit
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination,permit
Now, I send mail to local user from local user inside our domain "ip-5.ru"
The send and delivery is successful.
name@ip-5.ru -> other@ip-5.ru
If I send mail to local alias connected to remote mailbox, it is also succeessful.
name@ip-5.ru -> other@ip-5.ru -> name@gmail.com
The problem come, when I send mail from local user to remote mail box in gmail.com.
name@ip-5.ru -> name@gmail.com
I get:
NOQUEUE: reject: RCPT from unknown[xx.xx.xx.xx]: 454 4.7.1 <name@gmail.com>: Relay access denied; from=<name@ip-5.ru> to=<name@gmail.com> proto=ESMTP helo=<[yy.yy.yy.yy]>
I read that we need use SSL for get relay privileges...
So why I can relay via local alias?
The problem that SSL is very hard for configuration now... I tried to configure it and get much errors...
I want put your attention, that user names and passwords are provided for SMTP authentication, so my server isn't target for spam and unlimited relay, I just want find some way around SSL!
Is it possible to send from local mailbox directly to remote without making alias and without SSL?