Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd February 2008, 18:29
pine1455 pine1455 is offline
Member
 
Join Date: Jan 2008
Posts: 43
Thanks: 3
Thanked 0 Times in 0 Posts
Default strange behavior of postfix/dovecot/

Hi,
I followed all instructions described in http://www.howtoforge.com/centos-5.1...p-ispconfig-p1
I put some changes to have user@domain athu for SMTP ... Every things seem to be OK ... but the little problem .. when I set auth for my mail client It force me to provide correct user/pass but I found that it Also works without athu !!! Does anybody know how I can force my postfix/dovecot to athu all users to use SMPT server?!!!

TNX
--Pine

==== /etc/postfix/main.cf ==========
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
debugger_command =
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mailbox_command =
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = /etc/postfix/local-host-names
myhostname = www.mydomain.com
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $host Mail Server
smtpd_recipient_restrictions = ermit_sasl_authenticated,permit_mynetworks,reject_ unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type=dovecot
smtpd_tls_auth_only = no
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
smtp_sasl_auth_enable = no
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450
unknown_local_recipient_reject_code = 550
virtual_maps = hash:/etc/postfix/virtusertable
xxgdb $daemon_directory/$process_name $process_id & sleep 5
=========== /etc/dovecot.conf ==========

protocols = imap imaps pop3 pop3s
protocol imap {
}
protocol pop3 {
}
protocol lda {
postmaster_address = postmaster@www.mydomain.com
hostname = www.mydomain.com
}
auth_username_format ="%Ld_%Ln"
auth_debug = yes
auth default {
mechanisms = plain login
passdb pam {
}
userdb passwd {
}
user = root
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
}
plugin {
}
=================
Reply With Quote
Sponsored Links
  #2  
Old 4th February 2008, 16:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Any errors in your mail log?
__________________
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 4th February 2008, 17:40
pine1455 pine1455 is offline
Member
 
Join Date: Jan 2008
Posts: 43
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I have no error ... my problem is that client can send mail via one of the following method :
1. no smtp authentication ... !!!!
2. correct smtp authentication

my server work with/without smtp authentication I want to force them to authentication themselves t my server ...

TNX

--Pine
Reply With Quote
  #4  
Old 5th February 2008, 18:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

You have a typo in your main.cf:
Quote:
smtpd_recipient_restrictions = ermit_sasl_authenticated,permit_mynetworks,reject_ unauth_destination
It must be
Code:
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
instead.
__________________
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
  #5  
Old 6th February 2008, 18:39
pine1455 pine1455 is offline
Member
 
Join Date: Jan 2008
Posts: 43
Thanks: 3
Thanked 0 Times in 0 Posts
Default

It was my mistake in copy/past .. my postfix has a correct settings ... I'm getting cunfused ...

Last edited by pine1455; 6th February 2008 at 18:46.
Reply With Quote
  #6  
Old 6th February 2008, 18:56
pine1455 pine1455 is offline
Member
 
Join Date: Jan 2008
Posts: 43
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

I found the problem.... It was working OK.... It smtp need auth to send mail to other SMTP server .. it deliver all local mail without auth ...

TNX
Pine
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
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 15:15
Strange "client" [ ::1] causing "Directory Index Forbidden by Options Directive" Err bpmee Server Operation 19 17th June 2008 17:01
strange mail log cutting at 16:45 daily, incomplete mail logs st2xo Installation/Configuration 5 21st September 2006 15:43
Strange FTP issue pucko Installation/Configuration 4 23rd August 2006 20:26
strange characters in blog m u r Installation/Configuration 4 17th March 2006 14:18


All times are GMT +2. The time now is 15:07.


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