Postfix: not relaying mails anywhere but own network
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Postfix: not relaying mails anywhere but own network
Hi!
I've set up postfix, to manage mails.
I can receive mails from everywhere. Now I'd like to use this server as server from which I can send my Mails to anywhere.
I plan to instate authentication once this works, so it can't be abused as SPAM realy.
This is my config so far:
Code:
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
#myhostname = v32210.1blu.de
myhostname = polemon.org
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = polemon.org, v32210.1blu.de, localhost.1blu.de, localhost
relayhost =
mynetworks = 127.0.0.1/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
relay_transport = relay
relay_domains = 0.0.0.0/32
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
I've set 'relay_transport' to 'relay' and 'relay_domains' to '0.0.0.0', but the server still refuses to relay my mails anywhere, when I try to send one from my PC, which due to his dynamic IP, is an "untrusted" computer.
Could someone please tell me how to make Postfix relay my mail everywhere?
85.179.234.32 isn't on you network (as in mynetworks) so of course it won't relay.
If this is from outside of your network (which I assume it is), you should require the user to authenticate (look at sasl authentication - howtos on www.postfix.or.
Do a quick check from the server to ensure you can send mails to external recipients (just use the mail command like "mail -s something me@hotmail.com)
Edit - take a bit of care here - don't create an open relay
Last edited by billymayday; 04-16-2008 at 11:43 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.