LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2009, 08:43 PM   #1
bittus
Member
 
Registered: Aug 2006
Posts: 153

Rep: Reputation: 16
Want steps to enable smtp authentication in postfix


  1. Now my users are able to use mail clients to send mails only from "mynetworks". As you can see in my main.cf(attached), the smtpd_recipient_restrictions entries are resisting them. However they are able to receive mails from anywhere. I want to enable smtp authentication, so that whenever the users try to send a mail, they will be prompted for username and password. Thus I can remove the sending restrictions and all my users will be able to send mails from anywhere. I am not able to successfully complete the task of enabling smtp authentication yet.

    Can I get a step by step procedure to enable smtp authentication on a postfix server ? Or please suggest me a good e-book on this.
  1. I would like to resist the size of attachments sent/recieved thru my server to 5MB. Mails with attachments above 5MB should be rejected back to the sender.

Please note that the domain name, hostname and IPs are masked

version of postfix : 2.5.5
Attached Files
File Type: txt main.cf.txt (27.6 KB, 12 views)

Last edited by bittus; 12-09-2009 at 08:54 PM.
 
Old 12-10-2009, 01:26 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Thumbs up

Code:
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination,reject_unknown_recipient_domain,reject_non_fqdn_recipient
smtpd_tls_auth_only = no
smtp_use_tls = no
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_sessions_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
tls_daemon_random_source = dev:/dev/urandom
smtpd_sasl_authenticated_header = yes
smtpd_tls_session_cache_timeout = 3600s
Adding something along these lines will get you working with smtp-auth. Remember you must have saslauthd running also. If you want tls only smtp auth you'll need that line changed of course. You *really* should have tls setup and in use if you're doing smtp auth.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SMTP authentication in postfix aravind1024004 Linux - Server 12 09-04-2010 10:32 AM
Postfix SMTP Authentication lomax0990 Linux - Server 1 10-30-2009 01:23 PM
postfix smtp authentication hariiyer Linux - Server 4 09-14-2009 03:30 AM
Postfix SMTP Authentication lasantha Linux - Server 0 10-26-2007 02:06 PM
Enable SMTP Authentication hd2000 Linux - Software 4 12-07-2006 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration