Link to home
Start Free TrialLog in
Avatar of dharvell
dharvellFlag for United States of America

asked on

Creating Authenticated Relay using Postfix

As the title would indicate, I'm hoping to create an Authenticated relay using Postfix.  I've searched the Internet high and low on how to do this, but I am still falling short.

What appears to be happening is, I can send an e-mail... and it appears to send without error.  However, it never makes it to the recipient.  My theory is Postfix is stopping it, since it does not want to relay mail.  This is also happening when authenticating, so I'm stumped.

If anybody could give me some config tips to help me correctly set up my Postfix to relay authenticated e-mails, I will forever be indebted to you.

Thanks.
Avatar of Cyclops3590
Cyclops3590
Flag of United States of America image

you are trying to have users authenticate with your mail server in order to send email, correct?

if so, no problem, I know a couple of ways to do it, but before I get into that I will wait for you to confirm my suspicion.  Also, if this is it, also answer if your /var/spool/postfix directory structure is on the same partition as the /var/lib/
Avatar of dharvell

ASKER

Cyclops -

Sounds like your suspicion is dead on!  And yes... the /var/spool/postfix is on the same partition as /var/lib/.  So far, so good! :)
ASKER CERTIFIED SOLUTION
Avatar of Cyclops3590
Cyclops3590
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Cyclops -

Beautiful!  Sending mail works like a charm!  Now, when I attempt to RECEIVE mail (I sent myself a test to my Gmail account, which worked great, so I attempted to reply from my Gmail account), I get the following error (from Gmail):

PERM_FAILURE: SMTP Error (state 9): 554 <emailaddress@domain.com>: Relay access denied

So, in a nutshell, sending seems to work great, but receiving doesn't seem to...  Any thoughts?

Thanks again!
Okay... I got the send working.  All I had to do was add a $mydomain in the allowed relay in the /etc/postfix/main.cf file.  Excellent!

Thanks for the help.
awesome, glad I could help.