Greg Earle writes:
If so, should I be using something like "$USER"@"$LOCAL" instead (to get just-plain "[EMAIL PROTECTED]" fed to the external X.500 mailer)? Or perhaps "$EXT"@"$LOCAL"? (I'm a bit confused by the "EXT"/"EXT2"/"EXT3"/"EXT4" stuff in dot-courier(5), to be honest - perhaps an example usage in the man page would be useful?)
When $RECIPIENT is [EMAIL PROTECTED]:
HOST=domain LOCAL=user-foo-bar-baz EXT=foo-bar-baz EXT2=bar-baz EXT3=baz
That's exactly what the man page states, and I don't see any other way of making it more clear.
I wasn't seeing an obvious case where $RECIPIENT would be more than [EMAIL PROTECTED], thus my confusion.
Anyway, back to the problem at hand. I tried out the "fixed" aliases on my work Testbed Courier server (0.47). I'm still getting barf-backs, which I now think are understandable in the context of virtual domains:
Nov 23 14:11:23 mipl courierlocal: [ID 702911 mail.info] id=000F1F92.41A3B58A.0000164B,from=<[EMAIL PROTECTED]>,addr=<x500- [EMAIL PROTECTED]>,size=707,success: Message delivered.
The barf-back The following errors occurred when trying to deliver the attached mail:
[EMAIL PROTECTED]@mipl.JPL.NASA.GOV: User unknown
I had sent this to "[EMAIL PROTECTED]", with ".courier-x500-default" now set to
|/usr/local/sbin/mail500 -f "$SENDER" -h "$HOST" -m [EMAIL PROTECTED] "$EXT"@"$HOST"
with aliases/system containing
# After making any changes, run the makealiases script to compile the # alias database.
@jpl.nasa.gov: x500
The behavior in my result seems consistent with this passage in makealiases(8) for virtual domains:
VIRTUAL DOMAINS
The following special syntax implements a virtual domain. A
virtual domain redirects all mail for an entire domain to
one user:@domain: user
This special entry results in any recipient address of the
form [EMAIL PROTECTED] to be rewritten as [EMAIL PROTECTED], where me is
the hostname of the machine, which we expect to be a local
domain.The trouble is, I don't want virtual domains. I'm trying to send outgoing mail through a special external mailer if the recipient address is of a special form ([EMAIL PROTECTED]).
I traced the output of the "couriertcpd" process that accepted the outgoing mail, and curiously, I saw the ".courier-x500-default" file accessed, but never read!
[...]
9383: open("/opt/courier/etc/aliasfilteracct", O_RDONLY) Err#2 ENOENT
9383: write(5, 0x0017DD80, 35) = 35
9383: P R E . c o u r i e r x 5 0 0 - G r e g o r y . K . E a
9383: l e\n
9383: time() = 1101112363
9383: time() = 1101112363
9383: poll(0xFFBE9F78, 1, 15000) = 1
9383: read(5, " F A I L\n", 1023) = 5
9383: time() = 1101112363
[...]
9383: poll(0xFFBE9F80, 1, 15000) = 1
9383: write(5, 0x0017BEC8, 19) = 19
9383: P R E . c o u r i e r x 5 0 0\n
9383: time() = 1101112363
9383: time() = 1101112363
9383: poll(0xFFBE9F78, 1, 15000) = 1
9383: read(5, " F A I L\n", 1023) = 5
9383: time() = 1101112363
9383: poll(0xFFBE9F78, 1, 15000) = 1
9383: read(5, 0xFFBEA17D, 1018) = 0
9383: close(5) = 0
9383: open("/opt/courier/etc/dotextension", O_RDONLY) Err#2 ENOENT
9383: lstat("/opt/courier/etc/aliasdir/.courier-x500-Gregory:K:Earle", 0xFFBEA460) Err#2 ENOENT
9383: lstat("/opt/courier/etc/aliasdir/.courier-x500-default", 0xFFBEA460) = 0
9383: time() = 1101112363
9383: getpid() = 9383 [9374]
9383: open("110111/1101112363.9383.mipl.JPL.NASA.GOV", O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0660) = 5
9383: fstat(5, 0xFFBEA938) = 0
[...]
The ".courier-x500-default" file is lstat()'ed, but not opened or read.
At this point I'm not sure what else I can try, or if I'm missing something obvious. Any hints?
- Greg
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
