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.
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
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 ~]#
Are there any errors in your mail log? Can you connect to Postfix like this? Code: telnet localhost 25
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.
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?
Ok, that seems to be the problem. You can use another port: http://www.howtoforge.com/forums/showthread.php?t=5773&highlight=smtp+port+465 http://www.howtoforge.com/forums/showthread.php?t=19828&highlight=smtp+port+465