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 25th October 2010, 14:34
becks87 becks87 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 13
Thanks: 0
Thanked 1 Time in 1 Post
Default SMTP and Courier auth with full mail address

Hi All!
I have a problem that i would like to do a webserver with ISPConfig 2 in a multidomain environment. Everything works fine now, but i'm stucked at mail configuration's authentication. Now the POP3 and IMAP authentication works, but i can only auth with the short username, without the @mydomain.com ending. The problem is, that if i have two users who wants to use info@domain.com and the other is info@domain2.com it will not work. So i have to set the authentication to require the whole mail address as username. Is this possible without any MySQL/Courier/Postfix hack? How can i set it?
My second problem is, that my Postfix SMTP not requires authentication for sending, however i set it up according to online manuals. 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 = **mydomain.tld**

smtpd_banner = **mydomain.tld** ESMTP
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_cert_file = /etc/postfix/ssl/smtpd.cert
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = **mydomain.tld**
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#myorigin = /etc/mailname
myorigin = localhost
#mydestination = **mydomain.tld**, localhost.**mydomain.tld**, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
smtp_sasl_local_domain = $myhostname
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
#smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_ relay_domains
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names


I'm not so expert in Linux and ISPConfig. :S My system is an Ubuntu 10.04 x64 edition with ISPConfig 2, all required packages installed. Any ideas?
Reply With Quote
Sponsored Links
  #2  
Old 26th October 2010, 15:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by becks87 View Post
Hi All!
I have a problem that i would like to do a webserver with ISPConfig 2 in a multidomain environment. Everything works fine now, but i'm stucked at mail configuration's authentication. Now the POP3 and IMAP authentication works, but i can only auth with the short username, without the @mydomain.com ending.
You must use the system user username that should be something like web1_someuser and should be unique for each mailbox (unless you configured ISPConfig to not use the web[no]_ prefix).

Quote:
Originally Posted by becks87 View Post
My second problem is, that my Postfix SMTP not requires authentication for sending, however i set it up according to online manuals.
http://www.howtoforge.com/forums/sho...30&postcount=4
__________________
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
Reply

Bookmarks

Tags
authentication, courier, postfix, smtp

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
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 10:49
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 14:49
postfix: "unknown user" with mysql auth. Kruser Server Operation 3 18th June 2009 18:20
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 09:50
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41


All times are GMT +2. The time now is 06:22.


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