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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th February 2008, 21:46
boast boast is offline
Junior Member
 
Join Date: Jun 2007
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
Default [POSTFIX] No 250-AUTH

SMTP not working

Code:
ehlo localhost
250-mail.virtualdomain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
my main.cf
Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_protocols = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = mailserver.LanDomain, localhost
mydomain = mailserver.LanDomain
myhostname = mailserver.VirtualDomain.com
mynetworks = 127.0.0.0/8, 10.0.0.0/8
myorigin = /etc/mailname
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
recipient_delimiter = +
smtp_host_lookup = native
smtp_sasl_mechanism_filter = plain, login
smtp_tls_note_starttls_offer = yes
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination permit_inet_interfaces reject_unknown_reverse_client_hostname
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = 
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_alias_domains = 
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_uid_maps = static:5000
master.cf
Code:
smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
  -o smtpd_enforce_tls=no
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
smtps     inet  n       -       -       -       -       smtpd
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
        -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
my /etc/default/saslauthd
Code:
# Settings for saslauthd daemon
START=yes

MECHANISMS="pam"

MECH_OPTIONS=""

THREADS=5

OPTIONS="-c -m /var
/spool/postfix/var/run/saslauthd"
my /etc/hosts
Code:
127.0.0.1       localhost localhost.local
10.0.0.3        mailserver mailserver.LocalDomain virtualdomain.com
sasl smtpd.conf
Code:
pwcheck_method: saslauthd
mech_list: plain login
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: 127.0.0.1
sql_user: mail_admin
sql_passwd: 15982
sql_database: mail
sql_select: select password from users where email = '%u'


any ideas? I tried doing the guide over again, but still no luck.

thanks for any help

Last edited by boast; 2nd March 2008 at 17:46.
Reply With Quote
Sponsored Links
  #2  
Old 1st March 2008, 09:42
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

This config could be an open relay as in your smtpd_restrictions you do not have reject_unauth_destination.

Try adding that as the last option in smtpd_restrictions.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
The Following User Says Thank You to topdog For This Useful Post:
boast (1st March 2008)
  #3  
Old 1st March 2008, 19:17
boast boast is offline
Junior Member
 
Join Date: Jun 2007
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
Default

thanks for that.

I was able to get AUTH to show up by editing master.cf, and changing "-o smtpd_enforce_tls=yes" to "-o smtpd_enforce_tls=no"

I was hoping that would fix my issues, but no.

Code:
Mar  1 13:03:14 mail postfix/smtpd[17833]: connect from gv-out-0910.google.com[216.239.58.191]
Mar  1 13:03:14 mail postfix/smtpd[17834]: connect from gv-out-0910.google.com[216.239.58.189]
Mar  1 13:03:14 mail postfix/smtpd[17833]: lost connection after CONNECT from gv-out-0910.google.com[216.239.58.191]
Mar  1 13:03:14 mail postfix/smtpd[17833]: disconnect from gv-out-0910.google.com[216.239.58.191]
Mar  1 13:03:15 mail postfix/smtpd[17834]: NOQUEUE: reject: RCPT from gv-out-0910.google.com[216.239.58.189]: 554 5.7.1 <gv-out-0910.google.com[216.239.58.189]>: Client host rejected: Access denied; from=<myemail@gmail.com> to=<user@server.com> proto=ESMTP helo=<gv-out-0910.google.com>
Mar  1 13:03:15 mail postfix/smtpd[17834]: disconnect from gv-out-0910.google.com[216.239.58.189]
Reply With Quote
  #4  
Old 1st March 2008, 19:27
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

What are you actually trying to achieve ?
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #5  
Old 1st March 2008, 20:14
boast boast is offline
Junior Member
 
Join Date: Jun 2007
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
Default

to learn how to setup a (working) mail server
Reply With Quote
  #6  
Old 2nd March 2008, 03:22
boast boast is offline
Junior Member
 
Join Date: Jun 2007
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
Default

trying to send email, out, i get

Code:
postfix/smtpd[16675]: warning: SASL authentication failure: Password verification failed
Code:
mail from: user@virtualdomain.com
250 2.1.0 Ok
rcpt to:user@virtualdomain.com
554 5.7.1 <localhost[127.0.0.1]>: Client host rejected: Access denied
Reply With Quote
  #7  
Old 2nd March 2008, 08:35
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

Please post the current postfix config files you are using, main.cf and master.cf
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #8  
Old 2nd March 2008, 17:05
boast boast is offline
Junior Member
 
Join Date: Jun 2007
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I've been editing/updating my OP
Reply With Quote
  #9  
Old 6th April 2008, 05:56
boast boast is offline
Junior Member
 
Join Date: Jun 2007
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
Default

i can only get it to work by commenting out

# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject

is that safe?

Last edited by boast; 6th April 2008 at 15:39.
Reply With Quote
  #10  
Old 7th April 2008, 17:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

How exactly did you set up Postfix? Did you use one of the tutorials from this site?
__________________
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

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
Mail server attack princebenin Server Operation 1 19th November 2007 14:02
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04
Question regarding sendmail AUTH / Relaying denied wonka Installation/Configuration 5 3rd March 2007 15:56
postfix smtp sasl auth problem hammer Installation/Configuration 1 13th July 2006 18:19
Can't seem to get SMTP AUTH working.. ralexpdx HOWTO-Related Questions 3 3rd June 2006 14:20


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


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