Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st February 2011, 18:34
mathieu_ mathieu_ is offline
Junior Member
 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Authentification problem with Postfix

Hi,

I'm know to postfix, and I am experimenting some problems trying to configure a SMTP relay on my server using Postfix.

I am using Ubuntu 10.04 and I have installed sasl and postfix, using the tutorial here :
https://help.ubuntu.com/community/Postfix.
I use my ISP (1and1) to send the mail. When I try to send one using sendmail, I get the following error (using postqueue) :

(SASL authentication failed; server auth.smtp.1and1.fr[212.227.15.168] said: 535 Authentication failure)

The logs in /var/log/mail.log shows a problem with the certificate verification, and I have no clue where this certificate is coming from, since I have created one (as specified in the tutorial)

Feb 21 17:59:46 scarlatti postfix/master[12295]: terminating on signal 15
Feb 21 17:59:47 scarlatti postfix/master[12531]: daemon started -- version 2.7.0, configuration /etc/postfix
Feb 21 18:01:38 scarlatti postfix/master[1279]: daemon started -- version 2.7.0, configuration /etc/postfix
Feb 21 18:04:00 scarlatti postfix/pickup[1320]: 7C1F385624: uid=1000 from=<xxxx>
Feb 21 18:04:00 scarlatti postfix/cleanup[1659]: 7C1F385624: message-id=<20110221170400.7C1F385624@xxxx>
Feb 21 18:04:00 scarlatti postfix/qmgr[1321]: 7C1F385624: from=<xxxx@xxxx>, size=312, nrcpt=1 (queue active)
Feb 21 18:04:01 scarlatti postfix/smtp[1662]: certificate verification failed for auth.smtp.1and1.fr[212.227.15.184]:587: untrusted issuer /C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Certification Services Division/CN=Thawte Premium Server CA/emailAddress=premium-server@thawte.com
Feb 21 18:04:01 scarlatti postfix/smtp[1662]: 7C1F385624: SASL authentication failed; server auth.smtp.1and1.fr[212.227.15.184] said: 535 Authentication failure


Here is my main.cf :

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =

smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination

smtp_tls_security_level = may
smtpd_tls_security_level = may
smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = xxxx
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = xxxx, xxxx, localhost.localdomain, localhost
relayhost = [auth.smtp.1and1.fr]:587
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
mynetworks = 127.0.0.0/8
home_mailbox = Maildir/


Thanks for your help !
Mathieu
Reply With Quote
Sponsored Links
  #2  
Old 22nd February 2011, 15:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Can you try this guide? http://www.howtoforge.com/postfix_re...her_mailserver
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 23rd February 2011, 08:31
mathieu_ mathieu_ is offline
Junior Member
 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hi Falko,

Thanks four your message and pointed me this tutorial. I have remove my previous installation (including directories /etc/postfix and /var/spool/postfix) and installed everything from scratch, using :

To install postfix :
https://help.ubuntu.com/community/Postfix

And then to configure it :
http://www.howtoforge.com/postfix_re...her_mailserver

And it worked fine from the first mail.

Thanks,
Mathieu
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 09:58
Email Could not send and receive piseth Installation/Configuration 16 17th July 2010 18:27
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 14:49
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 13:58
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 20:43


All times are GMT +2. The time now is 03:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.