Re: [courier-users] [courier-users]Re: Deliver to different users with same username but different aliased hostnames

2004-07-31 Thread Martijn Lievaart
David Ehle wrote:
Have you looked into using aliases?
Add a file to /etc/courier/aliases with a line like:
[EMAIL PROTECTED]: [EMAIL PROTECTED]
The substitution will happen at the beginning of the delivery and so
the message will go through all of the normal filtering that jsmith01
would get.
Bowie
##
Bowie, Martijn,
 I thought that would work, but once I was read up on it I wasn't sure.
It seemed that I would need to use hosteddomains but it seemed like then
you needed to be using a ldap or mySQL backend to handle it.  If I put the
new domains in hosteddomains and do the makehosted domains, can I then
just drop a
[EMAIL PROTECTED]: jsmith
in /etc/courier/aliases/john, do a make aliases and it work?
I have just tried it without using hosteddomains, just a domain I have in
locals, and it definately did NOT work.
 

Yes, just add those domains to hosteddomains and use the aliases 
mechanism. No other backend needed. It's how I have set up things.

HTH,
M4

---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] Catch-all for virtual user/domain

2004-07-31 Thread Topper Harley
Hello all,
I'm having trouble configuring courier aliases.
I have a virtual user on a virtual domain in a Mysql record :
- [EMAIL PROTECTED]
This vuser/vhost works fine, I can send email to it and retrieve email 
from it.

Now I'd like to make this vuser a catch-all on vdomain.com
I tried adding :
@vdomain.com: [EMAIL PROTECTED]
and
@vdomain.com: webmaster
to my aliases file and ran makealiases each time but every attempt to 
send mail to [EMAIL PROTECTED] gets a 550 user unknown error.

Any idea what's wrong ?
---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] Re: Catch-all for virtual user/domain

2004-07-31 Thread Sam Varshavchik
Topper Harley writes:
Hello all,
I'm having trouble configuring courier aliases.
I have a virtual user on a virtual domain in a Mysql record :
- [EMAIL PROTECTED]
This vuser/vhost works fine, I can send email to it and retrieve email 
from it.

Now I'd like to make this vuser a catch-all on vdomain.com
I tried adding :
@vdomain.com: [EMAIL PROTECTED]
and
@vdomain.com: webmaster
to my aliases file and ran makealiases each time but every attempt to 
send mail to [EMAIL PROTECTED] gets a 550 user unknown error.

Any idea what's wrong ?
The alias rule @vdomain.com: [EMAIL PROTECTED] rewrites any address
[EMAIL PROTECTED] as [EMAIL PROTECTED], so you need to install a 
.courier-default file in webmaster's home directory to provide the necessary 
delivery instructions.



pgpq4Up0ItIDu.pgp
Description: PGP signature


Re: [courier-users] Catch-all for virtual user/domain

2004-07-31 Thread Frederik Dannemare
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Saturday 31 July 2004 19:38, Topper Harley wrote:
 Hello all,

 I'm having trouble configuring courier aliases.
 I have a virtual user on a virtual domain in a Mysql record :

 - [EMAIL PROTECTED]

 This vuser/vhost works fine, I can send email to it and retrieve
 email from it.

 Now I'd like to make this vuser a catch-all on vdomain.com
 I tried adding :

 @vdomain.com: [EMAIL PROTECTED]

 and

 @vdomain.com: webmaster

 to my aliases file and ran makealiases each time but every attempt to
 send mail to [EMAIL PROTECTED] gets a 550 user unknown error.

 Any idea what's wrong ?

You should be able to do it kinda like this:

mailhost:~# su - courier
mailhost:~$ mkdir -p /home/courier/vdomain.com/alias
mailhost:~$ echo [EMAIL PROTECTED] \
   /home/courier/vdomain.com/alias/.courier-default
mailhost:~$ mysql -u courier -p courier
mysql INSERT INTO users VALUES ('[EMAIL PROTECTED]',UID,GID,
-   'passwd_not_needed','/home/courier/vdomain.com/alias');

Let us know if it works.
- -- 
Frederik Dannemare | mailto:[EMAIL PROTECTED]
GnuPG key: search for 'dannemare' on http://pgpkeys.mit.edu
Key fingerprint: BB7B 078A 0DBF 7663 180A  F84A 2D25 FAD5 9C4E B5A8
http://frederik.dannemare.net | http://www.linuxworlddomination.dk
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBDD+6LSX61ZxOtagRAoeFAJ9u8NbO70yltcz/53DYdLFZCrCBWQCgoJrI
WvkPT8Ds7gMTejOsNFKV1qY=
=L42/
-END PGP SIGNATURE-


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Catch-all for virtual user/domain

2004-07-31 Thread Frederik Dannemare
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 01 August 2004 02:56, Frederik Dannemare wrote:
 On Saturday 31 July 2004 19:38, Topper Harley wrote:

[ snip ]

 You should be able to do it kinda like this:

 mailhost:~# su - courier
 mailhost:~$ mkdir -p /home/courier/vdomain.com/alias
 mailhost:~$ echo [EMAIL PROTECTED] \

/home/courier/vdomain.com/alias/.courier-default

 mailhost:~$ mysql -u courier -p courier
 mysql INSERT INTO users VALUES ('[EMAIL PROTECTED]',UID,GID,
 -   'passwd_not_needed','/home/courier/vdomain.com/alias');

 Let us know if it works.

Another way to do it, I think, would be to do something along the lines 
of:

mailhost:~# echo | /usr/bin/maildrop -d courier \
/etc/courier/aliasdir/.courier-default

mailhost:~# chmod u+s /usr/bin/maildrop# maildrop needs to be setuid 
root here, I believe (pls correct me, if I'm wrong)

cat EOF /home/courier/.mailfilter
logfile /home/courier/maildrop-filter-log

if ( ( /^To:[EMAIL PROTECTED]/ ) || ( /^Cc:[EMAIL PROTECTED]/ ) )
{
  to /home/courier/vdomain.com/webmaster/Maildir
}

if ( /^To:.*/ )
{
  to /dev/null
}
EOF

- -- 
Frederik Dannemare | mailto:[EMAIL PROTECTED]
GnuPG key: search for 'dannemare' on http://pgpkeys.mit.edu
Key fingerprint: BB7B 078A 0DBF 7663 180A  F84A 2D25 FAD5 9C4E B5A8
http://frederik.dannemare.net | http://www.linuxworlddomination.dk
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBDEMuLSX61ZxOtagRAqmPAJoCX+WO12Rg+ruz6Gkssy5swz9E5wCggaZE
iiSd47bH1Tp4X6vIzOGDGa8=
=S8Lm
-END PGP SIGNATURE-


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users