sendmail and cyrus

Discussion in 'Installation/Configuration' started by andrewthegrate, Oct 30, 2007.

  1. andrewthegrate

    andrewthegrate New Member

    I have a suse10 server on which I am trying to setup cyrus/sendmail/sasl

    Cyrus and sasl is running fine and I can get an inbox, shared folders and all that. I seem to be missing something with the sendmail bit. If if send mail to user@localhost, it windows up in /var/spool/mail instead of the user folder in /var/spool/imap.

    My mc file is pretty simple as per the below. I have read the cyrus docos and tried reading a few sendmail/cyrus tuts and had a borwse through O'Reily's bat book but I am getting nowhere. Any thoughts anyone? I tried putting the local mailer before the cyrus mailer and I tried removing the local mailer altogether. I have also tried cyrus instead of cyrus2. I recon I am missing some basic thing.


    VERSIONID(`Sendmail Config for LiftCap 29/09/2007')dnl
    OSTYPE(`linux')dnl
    DOMAIN(`generic')dnl
    define(`ALIAS_FILE', `/etc/aliases')dnl
    define(`confAUTH_OPTIONS', `A')dnl
    define('confLOCAL_MAILER','cyrus2')dnl
    MAILER(cyrus2)dnl
    define('CYRUS_MAILER_FLAGS','A5@W')dnl
    MAILER(local)dnl
    MAILER(smpt)dnl
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You could try to create a symbolic link from /var/spool/mail to /var/spool/imap:
    Code:
    mv /var/spool/mail /var/spool/mail_bak
    ln -s /var/spool/imap /var/spool/mail
     
  3. andrewthegrate

    andrewthegrate New Member

    No, the stuff that goes in t /var/spool/mail is in washington format while cyrus expects stuff in maildir format> Besides if I do a link, the mail headers won't go into the cyrus message header database.
     
  4. andrewthegrate

    andrewthegrate New Member

    sendmail and cyrus /var/spool/mail - the answer

    Yay, I finally have the answer to this, stupid though it may be on my part.

    I thought that the sendmail.cf was supposed to be in /etc/mail and in fact on my RHEL10 that's where it is. Not on SUSE though. After examining /etc/init.d/sendmail if find that it is using /etc/sendmail.cf

    Added this to my sendmail.mc


    MAILER(local)dnl
    define(`confLOCAL_MAILER', `cyrus')
    MAILER(`cyrus')

    and then m4 to /etc/sendmail.cf

    and all is well, what a waist of time
     

Share This Page