Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st December 2007, 21:46
menahem menahem is offline
Member
 
Join Date: Aug 2006
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
Default Problem with mail server

Hi all
I used this tutorial "http://howtoforge.net/virtual_users_and_domains_with_postfix_debian_etch "
to install and configure my mail server.

I followed the tutorial word by word and:
When I am doing telnet localhost pop3, inserting at the command line a user mail address (user@domain.tld) I am getting: O.k.

Inserting user password I am getting: logged in.
That is fine - but: trying to connect via my outlook I keep getting (from the mail log):
Code:
 cannot connect to saslauthd server: No such file or directory
And also:
Code:
SASL LOGIN authentication failed: generic failure
Looking at this forum I added the command
Code:
postconf -e 'smtpd_tls_auth_only = no'
and restarted the server. It did not help.

The directory /var/spool/postfix/var/run/saslauthd is set to chmod 777 - should be o.k.
But yet I can not connect via outlook to the mail server.

Please guide me howto solve the problem.

Thank you.
Menahem
Reply With Quote
Sponsored Links
  #2  
Old 1st January 2008, 16:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,726 Times in 2,565 Posts
Default

Please start saslauthd:
Code:
/etc/init.d/saslauthd start
and heck if it's really running:
Code:
ps aux | grep saslauthd
__________________
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 2nd January 2008, 00:19
menahem menahem is offline
Member
 
Join Date: Aug 2006
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
Default

falko:
Thank you for your replay.
I did
Code:
/etc/init.d/saslauthd start
and then:
Code:
ps aux | grep saslauthd
The output is:
Code:
root      3628  0.0  0.1   2848   700 pts/0    R+   01:15   0:00 grep saslauthd
Looks like saslauthd is running?
Where do we go from here?
Thanks A lot.
Menahem
Reply With Quote
  #4  
Old 2nd January 2008, 17:10
volksman volksman is offline
Senior Member
 
Join Date: May 2007
Posts: 124
Thanks: 2
Thanked 16 Times in 14 Posts
Default

Actually your output of the ps shows that it is not running. Check your logs when you try to start it. It may give a clue as to why it is not running.
Reply With Quote
  #5  
Old 2nd January 2008, 19:17
menahem menahem is offline
Member
 
Join Date: Aug 2006
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
Default

volksman:
What log to look at?
Menahem
Reply With Quote
  #6  
Old 2nd January 2008, 21:12
menahem menahem is offline
Member
 
Join Date: Aug 2006
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
Default

volksman and falko:

Mail server is working just fine

Looks like the problem was:... a hidden UTF-8 note was inserted by my text editor (PSPedit) between the STAERT{UTF8 hidden note}=Yes at the saslauthd config file.

I re inserted the line using VI without copt paste just wrote it up - and:a reset to the server and the mail server is working just fine.

Falko and volksman thanks A lot for your help

Menahem
Reply With Quote
  #7  
Old 2nd January 2008, 21:51
menahem menahem is offline
Member
 
Join Date: Aug 2006
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
Default

I was to happey to soon:
Al my emails get rejected by the mail server.
Mail log looks like this:
Code:
Jan  2 22:44:35 vulpes postfix/smtpd[5101]: NOQUEUE: reject: RCPT from hs-out-0708.google.com[64.233.178.245]: 554 5.7.1 <ml@negrocabalo.com>: Relay access denied; from=<menahem.lurie+gmcfvd39df8524f09d8d8@gmail.com> to=<ml@negrocabalo.com> proto=ESMTP helo=<hs-out-2122.google.com>
Jan  2 22:44:35 vulpes postfix/smtpd[5101]: disconnect from hs-out-0708.google.com[64.233.178.245]
Where do we do from here?
Menahem
Reply With Quote
  #8  
Old 2nd January 2008, 22:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,726 Times in 2,565 Posts
Default

Are you relaying mails through a Google server? What's in /etc/postfix/main.cf?
__________________
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
  #9  
Old 2nd January 2008, 22:37
menahem menahem is offline
Member
 
Join Date: Aug 2006
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi falko:
I am not relaying mails via gmail. I was trying to connect my gmail account to the server so that i could read my mail from the server.
my main.cf:
Code:
# 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 = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
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

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_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 = vulpes.negrocabalo.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = vulpes.negrocabalo.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
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
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
smtpd_tls_auth_only = no
I sent my self an e-mail messge from my gmail to my account at the server. the replay was:
Code:
This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

    ml@negrocabalo.com

Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 13): 554 5.7.1 <ml@negrocabalo.com>: Relay access denied

  ----- Original message -----

Received: by 10.141.185.3 with SMTP id m3mr7683599rvp.236.1199312488652;
       Wed, 02 Jan 2008 14:21:28 -0800 (PST)
Received: by 10.141.97.19 with HTTP; Wed, 2 Jan 2008 14:21:28 -0800 (PST)
Message-ID: <b0abca260801021421i52905628w3db5fcf6784cb612@mail.gmail.com>
Date: Thu, 3 Jan 2008 00:21:28 +0200
From: "=?UTF-8?B?157XoNeX150g15zXldeo15nXkA==?=" <nbjo62@gmail.com>
To: ml@negrocabalo.com
Subject: negrocabalo
MIME-Version: 1.0
Content-Type: multipart/alternative;
       boundary="----=_Part_18725_9438970.1199312488636"

------=_Part_18725_9438970.1199312488636
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline



------=_Part_18725_9438970.1199312488636
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

  ----- Message truncated -----
What is the problem?
Thanks.

Menahem

Last edited by menahem; 2nd January 2008 at 23:28.
Reply With Quote
  #10  
Old 3rd January 2008, 14:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,726 Times in 2,565 Posts
 
Default

Did you create an email account for ml@negrocabalo.com on your server?
__________________
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
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 08:27
Mail Server Problem after "How To Fight Spam Using Your Postfix Configuration" bluegrass Installation/Configuration 3 27th December 2006 16:03
Postfix and external mail server problem! JimmiJames Server Operation 2 6th September 2006 15:32
Webmail Relay Error palkat General 17 23rd April 2006 18:12
Mail server jas_esp Server Operation 1 7th December 2005 18:17


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


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