Click to See Complete Forum and Search --> : Sendmail config


PeeWee
11-23-2000, 06:45 AM
Now this is what I call a learning curve!!

I'm now at the mail stage of setting up a new Linux served network (NT workstations, RHL 6.1 with Samba, Apache, Squid, sendmail etc.)

During the setup phase I have to use an ISP for incoming mail

So locally my users are on domain1.com and I want them to recieve mail collected from an ISP serving domain2.com

Mail is collected with fetchmail

I have an alias set up so that

user1@domain1.com sends mail to user2@(either domain1 or domain2).com. If this is sent via my mailserver then Sendmail delivers it to user2 without a problem. However if the message is routed via the internet so that it is collected with fetchmail it is only delivered to root.

I get the feeling that I can configure fetchmail with a line for each user but with potentially 200 users I'm hoping for a solution which just looks at the name to the left of the @ and delivers it to the corresponding local user.

Does that make sense?

Apologies if I've missed something obvious - it's been a difficult 2 weeks getting this far..

PW

PeeWee
11-23-2000, 10:02 AM
A bit more on the above following some furtling in the dark:

I've now proved the fetchmail config bit (user THERE = user HERE) and it works perfectly if the user is specified.

What I'm hoping to use, if I've not been clear is the generic 'postbox' user at my ISP which allows me to transfer all mail via POP in one pass.

If I do this then although the TO: header is unchanged ie <user1@domain2.com> it is delivered to the root account with the line:

'X-Fetchmail-Warning: ; SMTP listener rejected local recipient addresses: postbox@domain2.com'

Is there any way to pick up on the content of the TO header rather than the POP account as it appears to do at the moment?

Ta
PW


[This message has been edited by PeeWee (edited 23 November 2000).]

PeeWee
11-26-2000, 05:11 AM
OK - cracked it myself (got to be the best way to learn).

Found the Multidrop feature.


PW