Postfix just for sending mail, forwarding to another MTA



Hello!

My postfix Installation refuses to send mails to adresses outside of
my network:

reject: RCPT from localhost[127.0.0.1]: 554 <USERNAME@xxxxxx>:
Recipient address rejected: Relay access denied;
from=<root@xxxxxxxxxxxxxxxxxxxx> to=<USERNAME@xxxxxx>

Mails to local users are send correctly.

The only thing postfix should do is to forward all messages to another
MTA.

Can anyone help me with this?

postconf -n :

(Domainnames and network filtert, written in Capitals):

command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_dns_lookups = yes
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination = 127.0.0.1, $myhostname, localhost.$mydomain
mydomain = DOMAIN.de
myhostname = SERVERNAME.DOMAIN.de
mynetworks = XXX.XXX.XXX.XXX/23
mynetworks_style = subnet
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydomain
relayhost = SMTP.UPPERDOMAIN.DE
sample_directory = /etc/postfix
sendmail_path = /usr/lib/sendmail
setgid_group = postdrop
.



Relevant Pages

  • Postfix just for sending mail, forwarding to another MTA
    ... Mails to local users are send correctly. ... The only thing postfix should do is to forward all messages to another ... (Domainnames and network filtert, written in Capitals): ... myhostname = SERVERNAME.DOMAIN.de ...
    (comp.unix.solaris)
  • Postfix and external mail
    ... i need to chance the from field of mails that are sending outside of my network. ... so where must i edit the postfix configuration??? ...
    (Fedora)
  • postfix trusted network
    ... postfix has to relay mails from a webserverin LAN to WAN. ... so postfix will accept mails from all host of this network ...
    (Debian-User)
  • Re: [SLE] Seeking help with mail-server setup
    ... > fetchmail brought and feeds it to IMAP, ... > postfix can see it... ... Postfix uses his configuration to see, if the mails belong to a local ... Then postfix delivers the mails to Cyrus. ...
    (SuSE)
  • Linux/Unix system admin looking for job
    ... Administrated and configured more then 50 linux/unix servers. ... Managing of the mail service using Sendmail and Postfix (virtual domains, ... MySQL, Antispam, Antivirus, SMTP authentication SASL). ... Network management. ...
    (comp.unix.admin)