Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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 <email@example.com>: 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.
After a day of hacking, I finally got a fix. Here is the new main.cf file (comments stripped,) for anyone struggling with this. It is important to note that I used SASL/TLS for authentication -- you will probably have to do the same. There are some good guides out there, especially if you're using Ubuntu.
smtpd_banner = $myhostname ESMTP $mail_name
biff = no