Postfix SMTP 554 -- how do I relay mail?
This is what is happening:
--@--:~$ telnet [removed] 587
Connected to [removed].
Escape character is '^]'.
220 [removed] ESMTP Postfix (Ubuntu)
250 2.1.0 Ok
554 5.7.1 <firstname.lastname@example.org>: Relay access denied
My question is this: how do I configure postfix in a way that I can send email to any email address I recognize the security implications of this, and I am planning on adding authentication after I figure out how to solve this problem.
A Note: I've done a substantial amount of google'ing -- most posts discuss how to allow relaying to one specific server, or a whitelist. I would like to be able to relay to any server. In fact, after reading some of the posts, I'm not even sure relaying is really what I want to do -- but I could be wrong.
Another Note: I need to be able to do this from outside of the local network.
My current main.cf file, comments stripped:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
myhostname = [removed]
home_mailbox = Maildir/
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = [removed - this is the domain], localhost
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION" DEFAULT=$HOME/Maildir/ MAILDIR=$HOME/Maildir
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
I tried adding a wild card to mynetworks and mydestination, to no avail.
Any help would be greatly appreciated.
Last edited by fultron; 01-28-2009 at 01:42 PM.