I've set up postfix (Debian) and it works fine. I can recieve mail and I can send them, but I can only send them to local (and local virtual) adresses.
But when I try to send the mail for example to my Gmail account, I get this in syslog:
Jun 30 18:34:44 vps postfix/smtpd: NOQUEUE: reject: RCPT from vps[18.104.22.168]: 554 5.7.1 <firstname.lastname@example.org>: Relay access denied; from=<email@example.com> to=<firstname.lastname@example.org> proto=ESMTP helo=<localhost.localdomain>
I've googled a lot but I did figure it out thought. I think that something is wrong with my* directives. Here are mine:
myhostname = mail.xxx.cz alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = xxx.cz, vps, localhost.localdomain, localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128