Hi,
Thanks for the reply David.
for reference.
domain. = registered domain name. ie domain.com .org .net
localdomain.local internal dns domain for my internal LAN domain.
The contents of the following files at the time of my problems are...
Outside DNS records have a mx for each domain here: .com .net .org pointing
to...
mx 10 mail.domain.com
# echo $HOSTNAME
machinename.localdomain.local
Virtual domains are /home/vmailman/domain/$domain.name
No /etc/courier/me
No /etc/courier/defaultdomain
/etc/courier/authdaemonrc
authmodulelist="authmysql authpam"
authmodulelistorig="authcustom authcram authuserdb authldap authpgsql
authmysql authpam"
daemons=5
version=""
authdaemonvar=/var/spool/courier/authdaemon
/etc/courier/esmtpacceptmailfor.dir/webadmin
domain.com
domain.net
domain.org
/etc/courier/hosteddomains/webadmin
domain.com
domain.net
domain.org
/etc/courier/locals
localhost
localdomain.local
machinename.localdomain.local
/etc/courier/aliases/system
root: postmaster
mailer-daemon: postmaster
MAILER-DAEMON: postmaster
uucp: postmaster
postmaster: [EMAIL PROTECTED]
** the mailadmin is a linux user account /home/mailadmin
** with a Maildir.
The domains are to be authenticated against the MySQL database table and the
localdomain.local will / should get authenticated with the Linux user
accounts using authPAM. My idea was to have localdomain.local for internal
LAN use and if you set the Email client settings to have just the $localpart
and password then Courier tries to authenticate as $localpart. The
authmysql fails then the authpam succeeds. So we can send mail as
[EMAIL PROTECTED] to [EMAIL PROTECTED] and it will stay within
the LAN being delivered to the Maildirs in the Linux user's accounts.
I can get my domain.com,net,org Emails. I can get internally, my
[EMAIL PROTECTED] Email.
If I try and send an Email from outside to [EMAIL PROTECTED] it failed.
Then I noticed I can use makealiases -dump
It displayed the output of the aliases plus the addition of @$HOSTNAME.
[EMAIL PROTECTED]: postmaster
[EMAIL PROTECTED]: postmaster
[EMAIL PROTECTED]: postmaster
[EMAIL PROTECTED]: postmaster
[EMAIL PROTECTED]: [EMAIL PROTECTED]
All the names were being appended. This meant postmaster was
[EMAIL PROTECTED] OK for here but not ok when I tried
to use Email to subscribe or unsubscribe from [EMAIL PROTECTED]
So I added a defaultdomain file with domain.com in it and postmaster changed
to [EMAIL PROTECTED] This worked but then what about the other
domains. I thought / misunderstood that since this postmaster alias file
seems to get appended all by itself it would also get appended for the other
domains in the setup.?
Also, if I use a defaultdomain file. My Email as # echo "TO: alan" |
sendmail wouldn't work anymore. It voided the existance of the locals file.
So I tried to use me file which advertised the outside world name for
headers. but again appended it to the postmaster name and to my echo
command.
Question:
1. How would you setup Courier to have the postmaster work for multiple
hosted domains?
2. I would like to use the me file plus be able to # echo "TO: alan" |
sendmail and it be treated as a locals name and sent to my Linux user
account. I would like to use the me file in conjunction with locals
I have just added the me file with "mail.domain.com"
SqWebmail will let me login as "alan" and it goes to my Linux Maildir at
/home/alan/Maildir. It correctly interprets the login as "alan" and checks
against /etc/passwd.
SqWebmail works. The echo command doesn't.
# authtest alan
Authenticated: module authdaemon
Home directory: /home/alan
UID/GID: 500/500
AUTHADDR=alan
AUTHFULLNAME=Alan Ingham
But the echo command of # echo "TO: alan" | sendmail gives me this...
Dec 23 17:45:16 nakusp courierd: newmsg,id=000CC39B.3FE8EFAC.000044AF: dns;
localhost (localhost [127.0.0.1])
Dec 23 17:45:16 nakusp courierd:
started,id=000CC39B.3FE8EFAC.000044AF,from=<[EMAIL PROTECTED]>,module=esm
tp,host=mail.domain.com,addr=<[EMAIL PROTECTED]>
Dec 23 17:45:16 nakusp courierd: Waiting. shutdown time=none, wakeup
time=none, queuedelivering=1, inprogress=1
Dec 23 17:46:16 nakusp courieresmtp:
id=000CC39B.3FE8EFAC.000044AF,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]
main.com>: Connection timed out
Dec 23 17:46:16 nakusp courieresmtp:
id=000CC39B.3FE8EFAC.000044AF,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]
main.com>,status: deferred
Dec 23 17:46:16 nakusp courierd: completed,id=000CC39B.3FE8EFAC.000044AF
nakusp is the mail server.
Hope this provides a little info. I had posted a help request relating to
the aliases in an earlier post but I guess I didn't capitalize the word
help.
P.S.
If I forget about me and defaultdomain files and change the aliases file
to..
__
root: postmaster
mailer-daemon: postmaster
MAILER-DAEMON: postmaster
uucp: postmaster
postmaster: [EMAIL PROTECTED]
[EMAIL PROTECTED]: postmaster
[EMAIL PROTECTED]: postmaster
[EMAIL PROTECTED]: postmaster
--
then have
# cat esmtpacceptmailfor.dir/*
__
localhost
localdomain.local
nakusp.localdomain.local
mail.localdomain.local
domain.com
domain.net
domain.org
--
# cat hosteddomains/*
domain.com
domain.net
domain.org
# cat locals
localhost
localdomain.local
nakusp.localdomain.local
mail.localdomain.local
Things work Ok; but mail sent out has the headers of the $HOSTNAME which is
the internal LAN machine name. Wish it could be the name from me.
Thanks David, Merry Christmas.!
Alan Ingham
----- Original Message -----
From: "David Ehle" <[EMAIL PROTECTED]>
To: "Alan I" <[EMAIL PROTECTED]>
Sent: Tuesday, December 23, 2003 12:29 PM
Subject: Re: [courier-users] Hi, Merry Christmas. How do you setup
postmaster for multiple hosted domains?
>
> Check and see if the other domains are listed in your esmtpacceptmailfor
> file.
>
> For instance if you are sending mail to [EMAIL PROTECTED] and it is
> not being recieved, but succeeds when sent to
> postmaster@<yourdefaultdomain>.org, see if domainx.org is listed in your
> esmtpaccetpmailfor file.
>
> Hope that helps!
>
>
> --
> David Ehle
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users