OS: Linux
Distro: RedHat 7.2
Sendmail (out of box) version 8.11 (i don't remember the additional numbers
after 8.11. coz the box on which RH 7.2 was installed is reverted to RH 6.2)
and also
Distro: RedHat 6.2
Sendmail (out of box) version 8.9.3-20
The virtusertable redistributes mails for users from within the network for
the virtual domain (configured properly on DNS) For example
----------------------------
[EMAIL PROTECTED]    user1
[EMAIL PROTECTED]    admin
@virt1.dom            admin
-----------------------------
Any mail sent to user1 over the intranet goes to user1
However mails for [EMAIL PROTECTED] sent over the internet from another domain
which are collected at the ISP into [EMAIL PROTECTED] when fetched using
fetchmail are being handed over to admin and not user1
The .fetchmailrc file relevant line is
----------------------------------
defaults
forcecr
poll pop.isp.dom with proto pop3 no dns
user admin with password secret
fetchall
----------------------------------
I  understand that if I had used the line
user admin with password secret is admin here
then all mails would have gone to admin
OK I tried using a procmail recipe like
---------------------------------
:0 c
* ^TO_user1@virt1\.dom
{
 ! [EMAIL PROTECTED]
}
--------------------------------------
and another one like
---------------------------------------
:0
* ^TO_user1@virt1\.dom
 ! [EMAIL PROTECTED]
-----------------------------------------
located in /home/admin/.procmailrc
Now the recipe listed second did work and forwarded to user1
but it didn't happen for subsequent mails (that is why I tried the first
recipe, which didn't work)
(Procmail man pages clearly say the the mail server's virtusertable should
be used for such redirections)
The best or the worst part is that I have this thing going on another box
(RH 6.2)
for virt2.dom (host2.dom)
Both virt1.dom and virt2.dom are hosted on the same ISP
The procedure followed  for creating sendmail.cf file from sendmail.mc with
m4 have been exactly the same for both (as per Suresh's example sendmail.mc
file). Also the procedure for creating virtusertable.db ( makemap hash for
RH 6.2 Sendmail 8.9 and makemap dbm for RH 7.2 Sendmail 8.11) have been
exactly the same for virt1.dom and virt2.dom.
I have also taken care to have the correct enties in the following files
(access, mailertable, domaintable). The MX records have a higher priority on
the host.dom machine nameserver.
The DS entry is correct for the ISP's smtp and DM entry is for virt1.dom as
was done for virt2.dom on another machine (which works fine)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Having explained all this my question is why is sendmail not able to map
users as per virtusertable for mails coming over the internet while within
the internet it is able to do so correctly (thereby proving that sendmail is
actually looking at the virtusertable for mapping)
----------------------------------------------------------------------------
--
Please do let me know your ananlysis of the situation.
Regards,
-------------------------
Sunil Dhaka


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to