Hmm, I fear that maybe my qestion (below) was too long, or too convoluted... 
has anyone had success getting dash extensions to work with shell accounts 
while using authmysql?

-j

    > 
    > Hello,
    > 
    > I'm stumped with an installation problem, and hoping for a sanity check. 
    > Courier is looking like a great replacement for Qmail for those who need a 
    > bit more functionality, thanks Sam! Hopefully Courier can do what I need.
    > 
    > I've set up courier (via rpm build) on RH7.3, configured authdaemon to use
    > authmysql and authpam ("authpam authmysql", so pam first?), added domains to
    > esmtpacceptmailfor, and set up the custom sql query.  The box has 2 IP
    > addresses: one used for ssh/login (and whose ip name is returned by hostname
    > [call it login.foo.com]), and a second one used for services (whose ip name
    > is in /etc/courer/me [call it mx.foo.com]) -- including courier-esmtp,
    > courier-pop, and courier-imap. (The primary hostname is in
    > /etc/courier/locals.)
    > 
    > esmtpacceptmailfor also contains virtual domains; for the below examples,
    > let's call one of them vhost.com. Every virtual domain is associated with a
    > user on the box (so, vhost.com might be 'owned' by user alice).
    > 
    > I'm able to add entries into mysql for virtual hosts and have delivery, 
    > esmtp auth, pop, and imap work. (Ie, sql contains '[EMAIL PROTECTED]' with 
    > homedir /home/alice/mailaccounts/bob-vhost.com).
    > 
    > I'm also able to have dash extensions in these directories, provided that
    > the dash file exists. (I.e., if the file
    > /home/alice/mailaccounts/bob-vhost.com/.courier-default exists, with
    > "./Maildir/", then mail to [EMAIL PROTECTED] is succesfully delivered.)
    > 
    > Mail to local user also works (ie, mail to [EMAIL PROTECTED] works), *BUT* 
    > mail to alice-foo (from localhost) and [EMAIL PROTECTED] fails with 
    > only the following message in /var/log/maillog (nothing else is written):
    >   450 Service temporarily unavailable.
    >   [EMAIL PROTECTED]: invalid address.
    > Mail to users defined in the sql table, say, [EMAIL PROTECTED], still works and 
    > goes through, so I don't understand why it's 450. (550, I could understand.)
    > (Mail to undefined users in the vhost generates a bounce - no such user.)
    > 
    > Editing authdaemonrc and removing the 'authmysql' module fixes this -- mail 
    > for user alice-foo (from localhost) and [EMAIL PROTECTED] work, but 
    > now I've lost the imap/pop addresses and virtual account authentication. No 
    > good.
    > 
    > The only mentions of 'vhost.com' are in esmtpacceptmailfor and hosteddomains
    > (well, in addition to the sql table). makealiases and makehosteddomains have 
    > been run. courier has been restarted, just in case.
    > 
    > Now, for the RealQuestion: I need to be able to deliver mail to qmail-style 
    > vhost addresses, if there is no sql table match.  Ie, if user alice has an 
    > imap/pop account for [EMAIL PROTECTED], all email for [EMAIL PROTECTED] and 
    > [EMAIL PROTECTED] should get routed through the sql-defined 
    > homedir/maildir/uid/gid, and all mail beyond that should get routed through 
    > ~alice/.courier-vhostcom-default. (Ie, if user alice wants to create a 
    > simple forward for [EMAIL PROTECTED], alice should be able to create the file 
    > ~alice/.courier-vhostcom-carol with the contents of "[EMAIL PROTECTED]".)
    > 
    > 
    > Adding '@vhost.com: alice-vhostcom' to, say, /etc/courier/aliases/vhosts, 
    > doesn't seem to change anything. (Yes, I did makealiases after.) Mail to 
    > [EMAIL PROTECTED] still goes to his vhost dir correctly, mail to 
    > [EMAIL PROTECTED] still picks up the correct dot-courier. Mail to alice 
    > works, mail to alice-foo fails, and mail to alice-vhostcom-whatever still 
    > fails (generates a bounce message).  (homedir permissions: rwx-----x, owned 
    > by user correctly; using homedir .courier to do |id>ID \n |env>END generates 
    > approriate values -- the process is owned by the user, etc. 
    > 
    > So, to recap: I can't figure out why qmail-style vhost stuff isn't working 
    > for real users on the system. When I send mail to user-extension, I get a 
    > 450 error, when I send mail to [EMAIL PROTECTED], I get a 550 error.
    > 
    > I'm stumped. Suggestions? Is this something as silly as not having 
    > configured courier to look inside the right directory for the dot-courier 
    > files? (But then why would it pick up ~alice/.courier for doing the ID and 
    > ENV commands?)
    > 
    > 
    > many thanks,
    > Jeff Potter
    > 
    > 
    > ps. Totally side question: how does on turn of courier-fax? I don't see a 
    > faxstart=yes|no option...
    > 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to