Results 1 to 4 of 4

Thread: Postfix SMTP authentication

  1. #1

    Smile Postfix SMTP authentication

    I have compiled postfix with cyrus-sasl enable and I have followed the http://www.postfix.org/SASL_README.html as it is to my centos. But my outgoing mail is not authenticated. Either I enable or disable the “my server requires authentication” option in outlook express my mail leave from the out look express, goes to the Postfix server and send to the correct mail box.

    If I enable the option mail log displays

    Oct 26 16:27:09 lasantha postfix/smtpd[3913]: connect from unknown[10.64.78.2]
    Oct 26 16:27:10 lasantha postfix/smtpd[3913]: 00805212F0: client=unknown[10.64.78.2], sasl_method=LOGIN, sasl_username=user2
    Oct 26 16:27:10 lasantha postfix/cleanup[3897]: 00805212F0: message-id=<20071026105710.00805212F0@mail.laknet.lk>
    Oct 26 16:27:10 lasantha postfix/qmgr[3853]: 00805212F0: from=<user2@laknet.lk>, size=585, nrcpt=1 (queue active)
    Oct 26 16:27:10 lasantha postfix/local[3899]: 00805212F0: to=<user1@laknet.lk>, relay=local, delay=0.12, delays=0.1/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
    Oct 26 16:27:10 lasantha postfix/qmgr[3853]: 00805212F0: removed
    Oct 26 16:27:10 lasantha postfix/smtpd[3913]: disconnect from unknown[10.64.78.2]

    If I disable that mail log shows

    Oct 26 16:48:53 lasantha postfix/smtpd[6556]: connect from unknown[10.64.78.2]
    Oct 26 16:48:53 lasantha postfix/smtpd[6556]: 90FE5212F0: client=unknown[10.64.78.2]
    Oct 26 16:48:53 lasantha postfix/cleanup[6559]: 90FE5212F0: message-id=<000801c817f5$e8d2e1e0$cb6b2b7c@abc>
    Oct 26 16:48:53 lasantha postfix/smtpd[6556]: disconnect from unknown[10.64.78.2]
    Oct 26 16:48:53 lasantha postfix/qmgr[3853]: 90FE5212F0: from=<user1@laknet.lk>, size=1310, nrcpt=1 (queue active)
    Oct 26 16:48:53 lasantha postfix/local[6560]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
    Oct 26 16:48:53 lasantha postfix/local[6560]: 90FE5212F0: to=<user2@laknet.lk>, relay=local, delay=0.19, delays=0.15/0.03/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
    Oct 26 16:48:53 lasantha postfix/qmgr[3853]: 90FE5212F0: removed

    I need each and every instance to authenticate a mail comes from email client to smtp server (in short and sweet, I only need to set up a postfix server to accept mail from out look client to the server if the “my server requires authenticating enabled”)

    How can I do this? What are the settings? I would appreciate if some one can help me?
    LASANTHA

  2. #2
    Is the SASL daemon for sure running? I've even seen with my own setup where it looked like it started fine, but actually quit because of something bad in the init script, or the config file. Also, what pw checking method are you using? I see 3 or so on that how-to. Is this only happening in Outlook? Did you try a telnet test?
    arrogance breeds ignorance

    Screaming Electron, Full of BSD Goodness

  3. #3

    Smile

    I am using saslauthd -a shadow.

    I have found the answer. Its a setting in /etc/postfix/main.cf
    Code:
    smtpd_recipient_restrictions = permit_sasl_authenticated  reject_unauth_destination
    You need to edit
    Code:
    reject_unauth_destination
    to only
    Code:
    reject
    .

    Then it always check the authentication for every sending mail to server.
    LASANTHA

  4. #4

    Smile

    Quote Originally Posted by lasanthaindika View Post
    I am using saslauthd -a shadow.

    I have found the answer. Its a setting in /etc/postfix/main.cf
    Code:
    smtpd_recipient_restrictions = permit_sasl_authenticated  reject_unauth_destination
    You need to edit
    Code:
    reject_unauth_destination
    to only
    Code:
    reject
    .

    Then it always check the authentication for every sending mail to server.
    Any way thanks for spending your valuable time and replying for the post Kernel_Killer.
    Thanks
    LASANTHA

Similar Threads

  1. squid authentication restriction
    By zhyrish in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 02-08-2010, 07:42 AM
  2. Net Access User Authentication
    By rahul_khatavkar in forum Linux - Software, Applications & Programming
    Replies: 12
    Last Post: 10-30-2009, 07:10 PM
  3. NT authentication for SQUID
    By waynefourie in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 06-22-2004, 02:06 PM
  4. DBM User Authentication
    By infinite_root in forum Linux - General Topics
    Replies: 4
    Last Post: 11-14-2003, 05:03 AM
  5. Public Authentication
    By Ashcrow in forum Linux - Software, Applications & Programming
    Replies: 7
    Last Post: 12-19-2002, 05:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •