
12th January 2009, 05:00
|
|
Member
|
|
Join Date: Dec 2008
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 5.2 - Apache 2.2.3 - MySQL 5.0.45 - php 5.1.6 - Postfix 2.3.3
|

13th January 2009, 03:52
|
|
Member
|
|
Join Date: Dec 2008
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 5.2 - Apache 2.2.3 - MySQL 5.0.45 - php 5.1.6 - Postfix 2.3.3
Last edited by flameproof; 13th January 2009 at 03:59.
|

13th January 2009, 13:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Quote:
Originally Posted by flameproof
Server is CentOS 5.2 with Dovecot, Sendmail, Postfix
Help is greatly appreciated.
|
Sendmail and Postfix?
What's the output of ?
|

13th January 2009, 16:14
|
|
Member
|
|
Join Date: Dec 2008
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 5.2 - Apache 2.2.3 - MySQL 5.0.45 - php 5.1.6 - Postfix 2.3.3
|

14th January 2009, 12:29
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Are there any errors in your mail log?
Can you connect to Postfix like this?
Code:
telnet localhost 25
|

14th January 2009, 19:26
|
|
Junior Member
|
|
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by flameproof
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.
|

15th January 2009, 06:15
|
|
Member
|
|
Join Date: Dec 2008
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 5.2 - Apache 2.2.3 - MySQL 5.0.45 - php 5.1.6 - Postfix 2.3.3
Last edited by flameproof; 15th January 2009 at 06:18.
|
| 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 09:03.
|
|
Recent comments
1 day 6 hours ago
1 day 11 hours ago
1 day 13 hours ago
1 day 13 hours ago
1 day 15 hours ago
1 day 20 hours ago
1 day 20 hours ago
1 day 23 hours ago
2 days 12 hours ago
2 days 13 hours ago