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 12th January 2009, 06:00
flameproof flameproof is offline
Member
 
Join Date: Dec 2008
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't send email from clients (thunderbird etc.)

My email should be OK. I can receive, and send via webmail. But sending from Thunderbird or evolution results in:

1. the password box popping up a few times

Then I get:

2. Sending of message failed/ The message could not be sent because connecting to SMTP server mx.mydomain.com failed. The server may be unavailable or is refusing smtp connections. Please verify that your smtp server setting is correct and try again, or else contact your network administrator.

maillog gives me: postfix/sendmail[25845]: fatal: usage: sendmail [options]

Other things are fine. To add to the problem, I can not test from here since my ISP blocks port 25 and I use the ISPs SMTP for sending. On the other side it worked before and I used to use mx.mydomain.com. I just moved that domain in question to my new VPS.

Server is CentOS 5.2 with Dovecot, Sendmail, Postfix

Help is greatly appreciated.
__________________
CentOS 6.6-i386 on a new VPS
Reply With Quote
Sponsored Links
  #2  
Old 13th January 2009, 04:52
flameproof flameproof is offline
Member
 
Join Date: Dec 2008
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am still stuck. Everything works, but can't send mails from email clients.

What accepts mails anyway? That is postfix, or? Where would I setup who can use, or can not use my mx.domain.com to send out mails?

Code:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, myVPShost.com
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.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
virtual_alias_maps = hash:/etc/postfix/virtual
sender_bcc_maps = hash:/etc/postfix/bcc
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
home_mailbox = Maildir/
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
__________________
CentOS 6.6-i386 on a new VPS

Last edited by flameproof; 13th January 2009 at 04:59.
Reply With Quote
  #3  
Old 13th January 2009, 14:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by flameproof View Post
Server is CentOS 5.2 with Dovecot, Sendmail, Postfix

Help is greatly appreciated.
Sendmail and Postfix?
What's the output of
Code:
netstat -tap
?
__________________
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
  #4  
Old 13th January 2009, 17:14
flameproof flameproof is offline
Member
 
Join Date: Dec 2008
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, should be just Postfix....

# netstat -tap

Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 *:pop3s                     *:*                         LISTEN      1616/dovecot
tcp        0      0 *:mysql                     *:*                         LISTEN      17517/mysqld
tcp        0      0 *:pop3                      *:*                         LISTEN      1616/dovecot
tcp        0      0 *:imap                      *:*                         LISTEN      1616/dovecot
tcp        0      0 *:ndmp                      *:*                         LISTEN      1495/perl
tcp        0      0 *:http                      *:*                         LISTEN      17758/httpd
tcp        0      0 *:ssh                       *:*                         LISTEN      16376/sshd
tcp        0      0 *:smtp                      *:*                         LISTEN      32532/master
tcp        0      0 *:https                     *:*                         LISTEN      17758/httpd
tcp        0      0 *:dnp                       *:*                         LISTEN      1570/perl
tcp        0      0 *:imaps                     *:*                         LISTEN      1616/dovecot
tcp        0   1040 vps-hosting.host.com:ssh  n219077015178.ne:kmscontrol ESTABLISHED 5924/0
[root@vps-1006512-323 ~]#
__________________
CentOS 6.6-i386 on a new VPS
Reply With Quote
  #5  
Old 14th January 2009, 13:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Are there any errors in your mail log?

Can you connect to Postfix like this?
Code:
telnet localhost 25
__________________
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
  #6  
Old 14th January 2009, 20:26
hank122s hank122s is offline
Junior Member
 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by flameproof View Post
My email should be OK. I can receive, and send via webmail. But sending from Thunderbird or evolution results in:

1. the password box popping up a few times

Then I get:

2. Sending of message failed/ The message could not be sent because connecting to SMTP server mx.mydomain.com failed. The server may be unavailable or is refusing smtp connections. Please verify that your smtp server setting is correct and try again, or else contact your network administrator.

maillog gives me: postfix/sendmail[25845]: fatal: usage: sendmail [options]

Other things are fine. To add to the problem, I can not test from here since my ISP blocks port 25 and I use the ISPs SMTP for sending. On the other side it worked before and I used to use mx.mydomain.com. I just moved that domain in question to my new VPS.

Server is CentOS 5.2 with Dovecot, Sendmail, Postfix

Help is greatly appreciated.

Keep in mind that 'webmail' and Thunderbird are using different ways of authorization on your mail server. Webmail will use Dovecot to auth local or virtual users while Thunderbird requires a bit more in the way of Auth (possibly TLS and or SASL) because sending mail via Thunderbird is asking your server to 'relay' from your home machine to another mail server where webmail is really only from your mail server to another, it's not really relaying from the 'outside'.
This may or may not be part of your issue.

Chas.
Reply With Quote
  #7  
Old 15th January 2009, 07:15
flameproof flameproof is offline
Member
 
Join Date: Dec 2008
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 myVPShost.com ESMTP Postfix
quit
221 2.0.0 Bye
Connection closed by foreign host.
Code:
telnet mx.domain.com 25
Trying 216.###.###.###...
Connected to mx.domain.com.
Escape character is '^]'.
220 myVPShost.com ESMTP Postfix
quit
221 2.0.0 Bye
Connection closed by foreign host.
Looks normal to me.


@hank122s

I understand that. But there must be some ways to isolate the problem. I have not checked TLS etc.

What is also trouble is that my ISP blocks port 25, so I can't check it myself. I have a person in China testing, but she is not technical. Is there a way to get around that port 25 issue? maybe setting another port for SMTP temporary?
__________________
CentOS 6.6-i386 on a new VPS

Last edited by flameproof; 15th January 2009 at 07:18.
Reply With Quote
  #8  
Old 15th January 2009, 15:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
 
Default

Quote:
Originally Posted by flameproof View Post
What is also trouble is that my ISP blocks port 25
Ok, that seems to be the problem.

You can use another port:
http://www.howtoforge.com/forums/sho...=smtp+port+465
http://www.howtoforge.com/forums/sho...=smtp+port+465
__________________
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
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 04:39
I get error message when i send email by smtp (thunderbird) rutame Installation/Configuration 9 31st August 2008 18:12
Help!! I can not send email with thunderbird!! rutame Server Operation 1 12th August 2008 20:27
Email Clients cannot send mail iverson0881 Installation/Configuration 3 8th May 2008 09:34
Can't send email with attachments to another email nysprite Installation/Configuration 2 29th June 2006 19:09


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


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