Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th August 2011, 13:42
pattone pattone is offline
Junior Member
 
Join Date: May 2011
Posts: 29
Thanks: 14
Thanked 1 Time in 1 Post
Default [SOLVED] Problem with outgoing mail from server

Hello, I'm from Argentine and my english is a little poor. I have a debian server that I had setup with the perfect server guide (lenny + Ispconfig 3 + BInd +Dovecot + postfix) http://www.howtoforge.com/perfect-se...ot-ispconfig-3
But this is not a question about ISPconfig since everything is working ok. My problem is that my ISP blocks port 25 but for outgoing mail. I had modify my master.cf from my postfix 2.5.5 for use the submission port (587) and my clients can connect to my server via smtp but the mails are getting queued in my server because it still sending the mails through the port 25. Is there any way to change the outgoing port for sending mail ??

Sorry If my english is not the best, thanks in advance guys
Reply With Quote
Sponsored Links
  #2  
Old 27th August 2011, 12:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I suggest you try to set up Postfix relaying: http://www.howtoforge.com/postfix_re...her_mailserver
__________________
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
The Following User Says Thank You to falko For This Useful Post:
pattone (28th August 2011)
  #3  
Old 27th August 2011, 15:38
pattone pattone is offline
Junior Member
 
Join Date: May 2011
Posts: 29
Thanks: 14
Thanked 1 Time in 1 Post
Default cannot authenticate to server smtp

Hi falko, first of all thanks very much for your help. I follow that guide (http://www.howtoforge.com/postfix_re...her_mailserver) and I still can't send mail from my server.
The log for the error is:
(SASL authentication failed; cannot authenticate to server smtp.ejemplo.com[xxx.xxx.xxx.xxx]: no mechanism available)

I have found a guide that says: "you have probably forgotten the smtp_sasl_security_options line in /etc/postfix/main.cf." but (https://help.ubuntu.com/community/GmailPostfixFetchmail)

That line is in my main.cf after follow the guide for relaying, at the end of my main.cf I have:

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =

Any Idea??

Thanks in advance

Last edited by pattone; 27th August 2011 at 15:50. Reason: I found some info on internet
Reply With Quote
  #4  
Old 28th August 2011, 11:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Can you send mails through smtp.ejemplo.com with a normal email client like Thunderbird or Outlook? If not, your login details are probably wrong.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
pattone (19th September 2011)
  #5  
Old 28th August 2011, 16:14
pattone pattone is offline
Junior Member
 
Join Date: May 2011
Posts: 29
Thanks: 14
Thanked 1 Time in 1 Post
Default

yes, actually is configured in a mail client and I can send mails without problems
Reply With Quote
  #6  
Old 29th August 2011, 08:13
dipeshmehta dipeshmehta is offline
Senior Member
 
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 13 Times in 13 Posts
Send a message via Yahoo to dipeshmehta Send a message via Skype™ to dipeshmehta
Default

Quote:
Originally Posted by pattone View Post
The log for the error is:
(SASL authentication failed; cannot authenticate to server smtp.ejemplo.com[xxx.xxx.xxx.xxx]: no mechanism available)
...
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
Try changing following line in main.cf
Code:
smtp_sasl_security_options = noanonymous
Hope this works.

Dipesh
Reply With Quote
The Following User Says Thank You to dipeshmehta For This Useful Post:
pattone (30th August 2011)
  #7  
Old 29th August 2011, 17:26
pattone pattone is offline
Junior Member
 
Join Date: May 2011
Posts: 29
Thanks: 14
Thanked 1 Time in 1 Post
Default

Hi dipeshmehta, thanks for your reply.
I saw that on another post and I try it but still the same error "(SASL authentication failed; cannot authenticate to server smtp.ejemplo.com[xxx.xxx.xxx.xxx]: no mechanism available)"

thanks anyway
Reply With Quote
  #8  
Old 30th August 2011, 08:56
dipeshmehta dipeshmehta is offline
Senior Member
 
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 13 Times in 13 Posts
Send a message via Yahoo to dipeshmehta Send a message via Skype™ to dipeshmehta
Default

Please post your main.cf here
Reply With Quote
The Following User Says Thank You to dipeshmehta For This Useful Post:
pattone (19th September 2011)
  #9  
Old 31st August 2011, 16:11
pattone pattone is offline
Junior Member
 
Join Date: May 2011
Posts: 29
Thanks: 14
Thanked 1 Time in 1 Post
Default

Hi dipeshmehta, this 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 = /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

readme_directory = /usr/share/doc/postfix

# 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:${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 = server01.myserver.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = server01.myserver.com, localhost, localhost.localdomain
relayhost = smtp.myisp.com
mynetworks = 127.0.0.0/8 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
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 = /var/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
smtpd_tls_security_level = may
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
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
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
maildrop_destination_concurrency_limit = 1
maildrop_destination_recipient_limit = 1
virtual_transport = dovecot
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
nested_header_checks = regexp:/etc/postfix/nested_header_checks
body_checks = regexp:/etc/postfix/body_checks
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
message_size_limit = 0
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
Reply With Quote
  #10  
Old 31st August 2011, 16:44
pattone pattone is offline
Junior Member
 
Join Date: May 2011
Posts: 29
Thanks: 14
Thanked 1 Time in 1 Post
 
Default

I try with:


smtp_sasl_security_options = noanonymous
smtp_always_send_ehlo = yes

at the end of the file but still te same error:


Aug 31 11:25:13 server01 postfix/smtp[24449]: E68A51FEC: to=, relay=smtp.myisp.com[xxx.xxx.xxx.xxx]:25, delay=349882, delays=349879/0.06/3.1/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.myisp.com[xxx.xxx.xxx.xxx]: no mechanism available)

any idea??
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 Timeout after DATA from some emails treeman Server Operation 13 25th September 2013 12:51
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 22:58
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 02:59
I don't recieve mail. privir Installation/Configuration 2 3rd June 2009 22:08
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16


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


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