Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Securing Postfix
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
asankaan
n00b
n00b


Joined: 17 Jul 2006
Posts: 60

PostPosted: Wed Jul 04, 2012 10:30 am    Post subject: Securing Postfix Reply with quote

Hi,

I have set up a mail server using postfix.
Users in my local network ('mynetwork') can send anonymous emails to any other person ( e.g. user 'A' can use smtp commands to send emails as they are sent by user 'B').
Is it possible to setup any authentication method to authenticate my local network users when sending emails?
Hope my question is clear enough!

Thanks in Advance.
Asanka
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Wed Jul 04, 2012 12:23 pm    Post subject: Reply with quote

yes it is.
remove your networks from mynetworks, as mynetworks are allowed to send mail unauthenticated.

for possible authentication method, have a look at the postfix documentation

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
asankaan
n00b
n00b


Joined: 17 Jul 2006
Posts: 60

PostPosted: Thu Jul 05, 2012 3:18 am    Post subject: Reply with quote

Thanks for the reply. I'll try that option :)

Thank you.
Asanka
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Fri Jul 06, 2012 6:49 am    Post subject: Reply with quote

should be able to just ^^remove your IP/range from $mynetworks, remove permit_mynetworks, and then enable sasl in postfix

sasl is the "glue" that ties your esmtp authentication to whichever backend, be it pam, mysql, imap, ldap, whatever.
/etc/sasl2/smtpd.conf controls the tying. permit_sasl_authenticated (and other choice SASL conf options) tell postfix to use the SASL mechanism.

it'll make more sense when you're balls deep into implementation, but that's the short version.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum