Evolution can't send mails

Discussion in 'Server Operation' started by satimis, Jul 13, 2008.

  1. satimis

    satimis Member

    Hi folks,


    Remote Server
    Ubuntu LAMP 6.06 amd64
    postfix
    cyrus


    Evolution can receive mails on remote server but can't send mails via it with same password.


    $ tail /var/log/mail.log
    Code:
    Jul 13 19:06:52 satimis postfix/smtpd[4511]: connect from unknown[220.232.213.178]
    Jul 13 19:07:06 satimis postfix/smtpd[4511]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such 
    file or directory
    Jul 13 19:07:06 satimis postfix/smtpd[4511]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such 
    file or directory
    Jul 13 19:07:06 satimis postfix/smtpd[4511]: warning: SASL authentication failure: Password verification failed
    Jul 13 19:07:06 satimis postfix/smtpd[4511]: warning: unknown[220.232.213.178]: SASL PLAIN authentication failed
    Jul 13 19:07:15 satimis postfix/smtpd[4511]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such 
    file or directory
    Jul 13 19:07:15 satimis last message repeated 3 times
    Jul 13 19:07:15 satimis postfix/smtpd[4511]: warning: SASL authentication failure: Password verification failed
    Jul 13 19:07:15 satimis postfix/smtpd[4511]: warning: unknown[220.232.213.178]: SASL PLAIN authentication failed
    Jul 13 19:07:19 satimis postfix/smtpd[4511]: disconnect from unknown[220.232.213.178]
    

    $ sudo ls /etc | grep sasldb2
    Code:
    sasldb2
    

    $ ls -l /etc/sasldb2
    Code:
    -rw-rw---- 1 root sasl 12288 2008-06-15 15:20 /etc/sasldb2
    

    $ cat /etc/group | grep postfix
    Code:
    mail:x:8:dovecot,postfix,cyrus
    postfix:x:111:
    

    Can I enter "sasl"

    on;
    Code:
    mail:x:8:dovecot,postfix,cyrus,sasl
    

    OR on;
    Code:
    postfix:x:111:sasl
    
    to solve the problem? TIA


    Edit:


    1)
    To my surprise I can send and receive emails on SquirrelMail with the same user and same password via remote server without problem.


    2)
    After ssh connect the remote server on Xterm, local PC, I can telnet localhost 25 to send a mail to yahoo without problem.


    What obstruction makes the user unable to authenticate on Evolution? sasl? cyrus? SugarCRM?


    B.R.
    satimis
     
    Last edited: Jul 14, 2008
  2. falko

    falko Super Moderator Howtoforge Staff

    Did you use one of the tutorials here to set up the server? If so, which one?
     
  3. satimis

    satimis Member

    Hi falko,

    NO.


    I followed following guide installing ubuntu OS, mysql, apache2, postfix, iptables
    https://help.ubuntu.com/6.06/ubuntu/serverguide/C/email-services.html
    without installing dovecot, samba, etc.

    Cyrus installation - guide
    https://help.ubuntu.com/community/Cyrus


    Their guides are not 100% workable, particularly cyrus. Recently I also suffered problem on MySQL after running "apt-get upgrade". Debian made changes on cyrus running it on chroot and MySQL as well. It took me some time to fix the problem on MySQL recently, not only on this Ubuntu 6.06 LAMP box and also on another Ubuntu 7.04 LAMP box. The problem came after running apt-get upgrade.


    I have had a difficult journey on building this LAMP server which serves as the platform to run SugarCRM. However through difficulties I learn a lot.


    I suspect the strange problem mentioned on this posting comes either from cyrus/sasl and/or SugarCRM. SugarCRM offers another email system, via gmail. I'll test it later disregarding whether I can fix the problem here or NOT.


    Thanks


    Edit-1:

    I found the cause of the problem on running;

    $ sudo apt-get --reinstall install evolution
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
    Need to get 0B/2737kB of archives.
    After unpacking 0B of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    Reading package fields... Done
    Reading package status... Done
    Retrieving bug reports... Done
    Parsing Found/Fixed information... Done
    grave bugs of evolution (2.10.1-0ubuntu2.4 -> 2.10.1-0ubuntu2.4) <pending>
     #479880 - evolution: sent mail content contains garbage sometimes
    Summary:
     evolution(1 bug)
    Are you sure you want to install/upgrade the above packages? [Y/n/?/...]  Y
    (Reading database ... 106017 files and directories currently installed.)
    Preparing to replace evolution 2.10.1-0ubuntu2.4 (using .../evolution_2.10.1-0ubuntu2.4_amd64.deb) ...
    Unpacking replacement evolution ...
    Setting up evolution (2.10.1-0ubuntu2.4) ...
    
    It is a bug. I doubt whether we can fix the problem.



    Edit-2:


    The problem is on Evolution of local machine. Not on the remote machine.


    Manual delete mails on Inbox/Outbox
    Manual delete mails Trash - can't be deleted


    Remove Evolution

    $ sudo apt-get remove evolution
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libedataserver1.2-9 libecal1.2-7 libpisock9 libedata-cal1.2-6 libnotify1
      evolution-common liblpint-bonobo0 gtkhtml3.14 libedataserverui1.2-8
      libedata-book1.2-2 libgtkhtml3.14-19 libnm-glib0 libegroupwise1.2-13
      libexchange-storage1.2-3 libcamel1.2-10 evolution-data-server-common
      evolution-data-server libgnome-pilot2 libbluetooth2 libsoup2.2-8 libpisync0
      libebook1.2-9
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
      evolution
    0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
    Need to get 0B of archives.
    After unpacking 8729kB disk space will be freed.
    Do you want to continue [Y/n]? Y
    (Reading database ... 106014 files and directories currently installed.)
    Removing evolution ...
    

    Fresh install Evolution

    $ sudo apt-get install evolution
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Suggested packages:
      bug-buddy gnome-spell network-manager evolution-exchange evolution-dbg
      evolution-plugins-experimental
    Recommended packages:
      gnome-pilot-conduits gnome-desktop-data evolution-plugins yelp spamassassin
      bogofilter
    The following NEW packages will be installed:
      evolution
    0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
    Need to get 0B/2737kB of archives.
    After unpacking 8729kB of additional disk space will be used.
    Reading package fields... Done
    Reading package status... Done
    Retrieving bug reports... Done
    Parsing Found/Fixed information... Done
    Selecting previously deselected package evolution.
    (Reading database ... 105878 files and directories currently installed.)
    Unpacking evolution (from .../evolution_2.10.1-0ubuntu2.4_amd64.deb) ...
    Setting up evolution (2.10.1-0ubuntu2.4) ...
    

    Start Evolution. Old emails on Trash remain


    Problem still remain unable to send mails

    Warning:
    Code:
    Unable to authenticate to SMTP server.
    Bad authentication response from server.
    
    Please enter the SMTP password for satimis on host satimis.com
    

    I suspect the problem is on uncleared Trash box.


    $ ls /home/satimis/Maildir/
    courierimapkeywords courierimapsubscribed courierimapuiddb courierpop3dsizelist cur new tmp


    Delete
    Code:
    courierimapkeywords  courierimapsubscribed  courierimapuiddb
    
    all of them? On all users?


    $ ls /home/satimis/Maildir/new
    has content


    I don't want to delete the emails on SquirrelMail. Would they be on "cur new tmp"???


    TIA


    Edit-3


    Ran zenwalk liveCD on a local machine

    (zenwalk.org a nice Linux distro)

    start email client "icedove". Remote server connected, problem remains same as previous. Emails can be download on the server. But can't send emails via the server.



    B.R.
    satimis
     
    Last edited: Jul 15, 2008

Share This Page