
23rd April 2007, 18:43
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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?
|

24th April 2007, 11:26
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
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.
|

24th April 2007, 16:38
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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?
|

24th April 2007, 16:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
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.
|

24th April 2007, 16:48
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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?
|

24th April 2007, 17:01
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
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.
|

24th April 2007, 17:51
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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.
|

10th May 2007, 19:11
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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?
|

10th May 2007, 21:40
|
|
Junior Member
|
|
Join Date: Jan 2006
Posts: 23
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
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.
|

10th May 2007, 22:27
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 06:30.
|
|
Recent comments
1 day 42 min ago
1 day 7 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 21 hours ago
2 days 6 hours ago
2 days 7 hours ago
2 days 11 hours ago
2 days 15 hours ago
2 days 15 hours ago