Solved

postfix allowed senders

Posted on 2009-07-15
2
747 Views
Last Modified: 2013-12-18
We have a mail gateway running postfix and MailScanner for our inbound mail, it forwards on to exchange.

All SMTP traffic comes in here.

It allows relaying for any domains that it is supposed to, and only relays those to our exchange sever.

I have roadwarriors that are using imap/pop for inbound, and that's pointed directly to exchange.  But I want their outbound email to point to the postfix box, and authenticate them with a password.

I've created a user account for them (actually, a common account, it's only a handfull of people) but I need to know how to tell postfix to allow valid users to send.

Thanks!
0
Comment
Question by:bennybutler
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Expert Comment

by:Maciej S
ID: 24943514
You need saslauthd and permit_sasl_authenticated rule in smtpd_recipient_restrictions (or in some other smtpd_*_restrictions - depending on your configuration) in main.cf.
http://www.postfix.org/SASL_README.html
http://www.postfix.org/docs.html (TLS and SASL parts).
0
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 125 total points
ID: 25097412
Hi,

You need to setup SASL. After you've setup SASL you need to add these lines to main.cf:

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_local_domain =
smtpd_sasl_authenticated_header = yes
broken_sasl_auth_clients = yes

The last line is to allow Outlook etc :)..

You'll also like this link :

http://postfix.state-of-mind.de/patrick.koetter/smtpauth/

Cheers,
K.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Easy CSR creation in Exchange 2007,2010 and 2013
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question