that fixed it, thanks! I also took the opportunity to remove global execute
permission on maildrop. ;-)
Jeff Jansen wrote:
On Sunday 22 February 2004 11:35, Bill Taroli wrote:
jeff courieresmtpd: [ID 702911 mail.info] started,ip=[::ffff:127.0.0.1]
jeff courieresmtpd: [ID 702911 mail.error]
error,relay=::ffff:127.0.0.1,from=[1]<bill...@billsden.org>,to=<wwt@localh
ost>: 513 Syntax error.
I wonder if it might be due to "wwt@localhost" as the address fetchmail
tries to use... but I haven't read enough to figure out how to force
something else so far. Any ideas?
Yeah, that's the problem. Fetchmail is sticking a "localhost" as the domain
since nothing is specified. You do need to have fetchmail speak smtp to
courier to get the global filtering. So now you just need fetchmail to map
user names properly.
There are a couple of ways to do this. You can explicitly list out which
remote account should be mapped to which local account.
user "user" with pass "pass" is [2]"my-u...@mydomain.com" here
Now all mail from the "user" account on the remote server will be sent to
courier as
RCPT TO: [3]<my_u...@mydomain.com>
You can also use the "smtpaddress" option to specify the domain that is added.
So "smtpaddress mydomain.com" will result in the above logged message being
sent to courier as
RCPT TO: [4]<ww...@mydomain.com>
I prefer the former option since it lets you set exactly what you want and
leaves nothing to chance, but I think either of those should probably solve
your problem. See the fetchmail man page for the myriad of options! :-)
HTH.
Jeff Jansen
References