--- Begin Message ---
Send courier-users mailing list submissions to
[EMAIL PROTECTED]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/courier-users
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of courier-users digest..."
Today's Topics:
1. Re: Can I do this? (Lindsay Haisley)
2. Re: Can I do this? (Sam Varshavchik)
3. Re: Re: Can I do this? (Lindsay Haisley)
4. Re: Re: Can I do this? (Lindsay Haisley)
5. Re: Can I do this? (Sam Varshavchik)
6. Making virtual accounts work - a solution (Lindsay Haisley)
7. Re: Making virtual accounts work - a solution (Sam Varshavchik)
8. Webmail envelope sender address (Lindsay Haisley)
9. Re: Webmail envelope sender address (Lindsay Haisley)
10. webmail changepass failure (Lindsay Haisley)
11. courierdsn: Problems injecting bounce - submit failed. (Mindaugas)
12. Re: webmail changepass failure (Sam Varshavchik)
--- Begin Message ---
Thus spake Lindsay Haisley on Sat, Mar 30, 2002 at 01:16:35PM CST
> Could I, for instance, include a domain_name field in the mysql passwd table
> and set up MYSQL_SELECT_CLAUSE to be something like
>
> select id,crypt,uid,gid,clear,home,maildir,quota,name from passwd where
> id="$(local_part)" and domain_name="$(domain)"
Well I tried this, and rcpt to: for _any_ address on the server (even those
otherwise authenticated via authpam) returns "450 Service temporarily
unavailable." If I comment out MYSQL_SELECT_CLAUSE it works. From the
mysql.log it looks as if the query isn't even being run.
--
Lindsay Haisley | "Everything works | PGP public key
FMP Computer Services | if you let it" | available at
512-259-1190 | (The Roadie) | <http://www.fmp.com/pubkeys>
http://www.fmp.com | |
--- End Message ---
--- Begin Message ---
Lindsay Haisley writes:
> Here's what I'd like to do for virtual accounts. The setup is easy, getting
> courier to work with it is where I have questions.
>
> I want to create virtual mail accounts so that the id for each account is
> unique, tied to the domain name under which the virtual account will be
> used. I'm using authmysql and authpam, the former being checked first.
>
> I can set up a virtual mailbox account so that the id field in the mysql
> passwd table contains user@domain, so POP logins will be unique, and the
> 'home' field will be set to something like /home/virtmail/domain/user, which
> uniquely defines the mailbox. This works fine for POP access, but won't
> work for esmtp, which gives me a "User unknown" in response to rcpt to:
> <user@domain>. If I set the ID field to "user" instead of "user@domain"
Put domain in hosteddomains, instead of locals.
--
Sam
--- End Message ---
--- Begin Message ---
OK, thanks! It's a RTFM issue, but courier has such a lot of RTFM :-P
It might be helpful to people to note in courier(8) for hosteddomains that
locals is parsed before hosteddomains. If an address is in locals it won't
get seen in hosteddomains. This is implicit in the documentation, but
something a little more explicit would be nice. It would have saved me some
farting around trying to figure out why it wasn't working.
Thus spake Sam Varshavchik on Sat, Mar 30, 2002 at 03:38:19PM CST
> Lindsay Haisley writes:
>
> > Here's what I'd like to do for virtual accounts. The setup is easy, getting
> > courier to work with it is where I have questions.
> >
> > I want to create virtual mail accounts so that the id for each account is
> > unique, tied to the domain name under which the virtual account will be
> > used. I'm using authmysql and authpam, the former being checked first.
> >
> > I can set up a virtual mailbox account so that the id field in the mysql
> > passwd table contains user@domain, so POP logins will be unique, and the
> > 'home' field will be set to something like /home/virtmail/domain/user, which
> > uniquely defines the mailbox. This works fine for POP access, but won't
> > work for esmtp, which gives me a "User unknown" in response to rcpt to:
> > <user@domain>. If I set the ID field to "user" instead of "user@domain"
>
> Put domain in hosteddomains, instead of locals.
>
> --
> Sam
>
>
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
--
Lindsay Haisley | "Everything works | PGP public key
FMP Computer Services | if you let it" | available at
512-259-1190 | (The Roadie) | <http://www.fmp.com/pubkeys>
http://www.fmp.com | |
--- End Message ---
--- Begin Message ---
Thus spake Sam Varshavchik on Sat, Mar 30, 2002 at 03:38:19PM CST
>
> Put domain in hosteddomains, instead of locals.
Another sticky issue here is with regard to POP clients such as Eudora,
which store a POP3 account name in the format user@mailhost. Eudora
interprets user@domain@mailhost as a lookup for user at the host
[EMAIL PROTECTED] rather than user@domain at the host mailhost. I'm not
sure how to work around this.
--
Lindsay Haisley | "Everything works | PGP public key
FMP Computer Services | if you let it" | available at
512-259-1190 | (The Roadie) | <http://www.fmp.com/pubkeys>
http://www.fmp.com | |
--- End Message ---
--- Begin Message ---
Lindsay Haisley writes:
> OK, thanks! It's a RTFM issue, but courier has such a lot of RTFM :-P
>
> It might be helpful to people to note in courier(8) for hosteddomains that
> locals is parsed before hosteddomains. If an address is in locals it won't
> get seen in hosteddomains. This is implicit in the documentation, but
> something a little more explicit would be nice. It would have saved me some
> farting around trying to figure out why it wasn't working.
You should've used webadmin to set things up. webadmin knows about all
these little interdependencies...
--
Sam
--- End Message ---
--- Begin Message ---
Getting virtual accounts to work in courier wasn't easy, but here's my
solution. I got some help from Sam (Thanks!) and did a lot of poking and
experimenting in authmysqlrc. There's a special problem with some mail
clients, such as Eudora, which store POP account information in the format
user@pop_host and have difficulty with user account names containing "@",
which is the simplest situation with virtual accounts. An POP host spec in
Eudora of "user@domain@mailhost" gets parsed as user "user", mail host
"domain@mailhost" rather than user "user@domain", mail host "mailhost".
I used a mysql courier.passwd table with the following structure:
+-------------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+------------------+------+-----+---------+-------+
| id | char(128) | | MUL | | |
| crypt | char(128) | | | | |
| clear | char(128) | | | | |
| name | char(128) | | | | |
| uid | int(10) unsigned | | | 65534 | |
| gid | int(10) unsigned | | | 65534 | |
| home | char(255) | | | | |
| maildir | char(255) | | | | |
| quota | char(255) | | | | |
| domain_name | char(60) | | | fmp.com | |
+-------------+------------------+------+-----+---------+-------+
I set up hosteddomains to include all domains for virtual accounts.
Make sure that in authmysqlrc you have DEFAULT_DOMAIN set to something.
Anything will do, otherwise mysql queries on bare ID's will fail in
MYSQL_SELECT_CLAUSE and authdaemon will return "Service temporarily
unavailable" and not fall through if you have chaining authentication
modules.
Set MYSQL_SELECT_CLAUSE to:
select id,crypt,uid,gid,clear,home,maildir,quota,name from courier.passwd
where (id="$(local_part)" and domain_name="$(domain)") or CONCAT(id, "%",
domain_name)="$(local_part)"
(all one line)
User ID's for virtual accounts are stored without a domain name.
If the database contains an id "friend" with a domain_name of "frobniz.com",
an esmpt "rcpt_to: <[EMAIL PROTECTED]>" will find the appropriate virtual
account and allow incoming email. Authmysql will _also_ authenticate
"friend%frobniz.com" for the purpose of POP3 logins, which allows Eudora to
see the account. As a side effect, mail to "[EMAIL PROTECTED]"
will also be delivered, but I don't thing this is cause for concern.
--
Lindsay Haisley | "Everything works | PGP public key
FMP Computer Services | if you let it" | available at
512-259-1190 | (The Roadie) | <http://www.fmp.com/pubkeys>
http://www.fmp.com | |
--- End Message ---
--- Begin Message ---
Lindsay Haisley writes:
> experimenting in authmysqlrc. There's a special problem with some mail
> clients, such as Eudora, which store POP account information in the format
> user@pop_host and have difficulty with user account names containing "@",
> which is the simplest situation with virtual accounts. An POP host spec in
> Eudora of "user@domain@mailhost" gets parsed as user "user", mail host
> "domain@mailhost" rather than user "user@domain", mail host "mailhost".
Note that you can always add a duplicate record, such as user%domain, with
the same home directory, uid, and gid, and use that address to log in and
read mail.
--
Sam
--- End Message ---
--- Begin Message ---
Where does sqwebmail get it's envelope sender address - the same one
apparently displayed in the upper right corner of the working window once
one has logged in? All I'm is the username@hostname instead of
[EMAIL PROTECTED] Mail goes out with a proper body From: header,
but the SMTP mail_from address is fubar and mail bounces.
--
Lindsay Haisley | "Everything works | PGP public key
FMP Computer Services | if you let it" | available at
512-259-1190 | (The Roadie) | <http://www.fmp.com/pubkeys>
http://www.fmp.com | |
--- End Message ---
--- Begin Message ---
Never mind.... I found /etc/courier/defaultdomain
Thus spake Lindsay Haisley on Sun, Mar 31, 2002 at 12:32:01AM CST
> Where does sqwebmail get it's envelope sender address - the same one
> apparently displayed in the upper right corner of the working window once
> one has logged in? All I'm is the username@hostname instead of
> [EMAIL PROTECTED] Mail goes out with a proper body From: header,
> but the SMTP mail_from address is fubar and mail bounces.
>
> --
> Lindsay Haisley | "Everything works | PGP public key
> FMP Computer Services | if you let it" | available at
> 512-259-1190 | (The Roadie) | <http://www.fmp.com/pubkeys>
> http://www.fmp.com | |
>
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
--
Lindsay Haisley | "Everything works | PGP public key
FMP Computer Services | if you let it" | available at
512-259-1190 | (The Roadie) | <http://www.fmp.com/pubkeys>
http://www.fmp.com | |
--- End Message ---
--- Begin Message ---
My webmail change-password feature isn't working. I have two test accounts,
one authenticated via pam in /etc/passwd and the other via authmysql.
Here's what I know.
For the /etc/passwd (PAM) account, authsystem.passwd works. I can run it
manually and change the password.
For the account authenticated through authmysql, I have set the following in
authmysqlrc:
MYSQL_CHPASS_CLAUSE update courier.passwd set clear="$(newpass)",
crypt="$(newpass_crypt)" where id="$(local_part)" and
domain_name="$(domain)"
I'm not seeing any activity in /var/log/mysql.log, which otherwise shows all
authmysql activity. It looks as if the update query isn't making it out the
door.
I'm not seeing anything in any of the log files in /var/log which would shed
light on this. Any suggestions as to where to look for (or what to set for)
debugging information would be appreciated.
I can log in OK to the webmail client with either account, send mail to
either account from a remote host, and access both accounts using POP3.
--
Lindsay Haisley | "Everything works | PGP public key
FMP Computer Services | if you let it" | available at
512-259-1190 | (The Roadie) | <http://www.fmp.com/pubkeys>
http://www.fmp.com | |
--- End Message ---
--- Begin Message ---
|
Some of my net users can not sent messages
(10.x.x.x).
In server logs I get: "courierdsn: Problems
injecting bounce - submit failed."
|
--- End Message ---
--- Begin Message ---
Lindsay Haisley writes:
> My webmail change-password feature isn't working. I have two test accounts,
> one authenticated via pam in /etc/passwd and the other via authmysql.
> Here's what I know.
>
> For the /etc/passwd (PAM) account, authsystem.passwd works. I can run it
> manually and change the password.
As an experiment, disable authpasswd and leave only authmysql running, and
see if it works now.
--
Sam
--- End Message ---
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/courier-users
--- End Message ---