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 23rd April 2007, 18:43
unhookt unhookt is offline
Junior Member
 
Join Date: Feb 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default ISPConfig/perfect setup: outbound e-mail

I installed ispconfig under the perfect setup instructions but my SMTP server is not authenticating outbound e-mail against user credentials, only against domain name. Can you tell me where I can change this setting in ISPConfig so that outbound messages require user/passwd to be relayed?
Reply With Quote
Sponsored Links
  #2  
Old 24th April 2007, 11:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
Default

SMTP Authentication is always enabled when you follow the perfect setup guide. Please compare your postfix setup with the perfect setup instructions.

Be aware that SMTP authentication is never needed for any local domain names, otherwise your server wont be able to receive any email for local mailboxes.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 24th April 2007, 16:38
unhookt unhookt is offline
Junior Member
 
Join Date: Feb 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

So you're saying that in the perfect setup it's supposed to allow anyone using a pop email client such as entourage or outlook to be able to claim to have an email address that resides within my domain and send outbound mail, even if there is no such user or address in the ispconfig list? This is what is happening.

that doesn't seem right...

In MS Exchange server, I am able to configure the server such that the username and password are required from the email client in order to send outbound mail. How can I do that in the perfect setup/ispconfig?
Reply With Quote
  #4  
Old 24th April 2007, 16:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
Default

No, I dont have said this, I told you the opposite. I said that you must authenticate with username and password and that the requirement to authenticate is configured in the perfect setup.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 24th April 2007, 16:48
unhookt unhookt is offline
Junior Member
 
Join Date: Feb 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Be aware that SMTP authentication is never needed for any local domain names, otherwise your server wont be able to receive any email for local mailboxes.
But does the above mean that local domain users, or those impersonating local domain users, do not have to authenticate?
Reply With Quote
  #6  
Old 24th April 2007, 17:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
Default

Quote:
Originally Posted by unhookt
But does the above mean that local domain users, or those impersonating local domain users, do not have to authenticate?
No. The above statement is about receiving emails, not sending. If you send a email to a local account, there is never a authentication needed as otherwise your mailserver wont be able to receive emails at all. Thats the case for any linux and windows mailserver in general.

But some poeple mix these things up and try to do a realay test against a local domain, which is useless.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 24th April 2007, 17:51
unhookt unhookt is offline
Junior Member
 
Join Date: Feb 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

gotcha - sorry for the confusion.

my users are able to send email without turning authentication on in their mail clients. I want to force their user ids and passwords to be required. how can I do this?

I followed the "perfect setup" instructions...

Last edited by unhookt; 27th April 2007 at 22:24.
Reply With Quote
  #8  
Old 10th May 2007, 19:11
unhookt unhookt is offline
Junior Member
 
Join Date: Feb 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Anyone? Essentially, I can send mail by configuring my e-mail client with a made up e-mail address that uses my valid domain name. No password required.

And yes, I'm testing from outside of my local network...

Here's my main.cf file:

Quote:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
inet_interfaces = all
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.2.8/samples
readme_directory = /usr/share/doc/postfix-2.2.8/README_FILES
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
smtpd_tls_auth_only = no
smtp_use_tls = yes
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_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

mydestination = /etc/postfix/local-host-names
virtual_maps = hash:/etc/postfix/virtusertable
and here are the results when I connect to the SMTP port via SSH on my local machine:

Quote:
220 xxx.domain.net ESMTP Postfix
ehlo localhost
250-xxx.domain.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
exit
I really don't want to be a spam source. Can anybody out there help?
Reply With Quote
  #9  
Old 10th May 2007, 21:40
JaJunk JaJunk is offline
Junior Member
 
Join Date: Jan 2006
Posts: 23
Thanks: 1
Thanked 2 Times in 2 Posts
Default

What is defined as mynetworks?
more /etc/postfix/main.cf | grep mynetworks

looks almost the same as mine, which does require outgoing auth from clients. As for the second part, that just tells you tls is working.
Reply With Quote
  #10  
Old 10th May 2007, 22:27
unhookt unhookt is offline
Junior Member
 
Join Date: Feb 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by JaJunk
What is defined as mynetworks?
more /etc/postfix/main.cf | grep mynetworks
Is this supposed to be defined in the same main.cf document? If so, I'm missing that piece. (I posted the entire contents of the main.cf file above)

How do I specify mynetworks to allow the machines on my network (192.168.1.x) to allow SMTP relay?

Thanks!

Last edited by unhookt; 10th May 2007 at 22:33.
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
Postfix & mail forwarding loop varnik Server Operation 21 9th December 2008 15:13
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
postfix-tls sasl2 mysql courier-authmysql gabrix Server Operation 4 12th January 2007 22:09
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


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


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