Can't send email from clients (thunderbird etc.)

Discussion in 'Server Operation' started by flameproof, Jan 12, 2009.

  1. flameproof

    flameproof Member

    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.
     
  2. flameproof

    flameproof Member

    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
     
    Last edited: Jan 13, 2009
  3. falko

    falko Super Moderator ISPConfig Developer

    Sendmail and Postfix?
    What's the output of
    Code:
    netstat -tap
    ?
     
  4. flameproof

    flameproof Member

    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
    [[email protected] ~]#
    
    
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Are there any errors in your mail log?

    Can you connect to Postfix like this?
    Code:
    telnet localhost 25
     
  6. hank122s

    hank122s New Member


    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.
     
  7. flameproof

    flameproof Member

    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?
     
    Last edited: Jan 15, 2009
  8. falko

    falko Super Moderator ISPConfig Developer

Share This Page