I have a RH 7.2 linux box that fetches my mail from my external email provider and distributes it into my local network (the LAN has no internet connection avaliable). All local email is also sorted on this machine. There are a few cases where I need to send the local mail back out to a mail box that resides on our external email providers server.... This is hard to explain....
The external email server (that I have no control over):
mail.mycompany.net
Email addresses served @ mycompany.net
user1@mycompany.net
user2@mycompany.net
........
.....
...
.
I use fetchmail to get the email and put in into our local email boxes. There is no MX record or anything that points at my server.
My RH machine masqurades as the server for mycompany.net for email that is inetrnal to my LAN and anything thats going out. I am using sendmail and pop3.
The problem is user23@mycompany.net is not on the LAN and wants to get mail directly from mail.mycompany.net which is fine. I dont fetch user23's mail. But from the LAN I cant send a mail to user23@mycompany.net.
What I would like to do is get Procmail or Sendmail to send/forward the mail for user23@mycompany.net to there account on mail.mycompany.net.
Is there any way to do this or something else that would fix this problem without it being messy for my users?
The external email server (that I have no control over):
mail.mycompany.net
Email addresses served @ mycompany.net
user1@mycompany.net
user2@mycompany.net
........
.....
...
.
I use fetchmail to get the email and put in into our local email boxes. There is no MX record or anything that points at my server.
My RH machine masqurades as the server for mycompany.net for email that is inetrnal to my LAN and anything thats going out. I am using sendmail and pop3.
The problem is user23@mycompany.net is not on the LAN and wants to get mail directly from mail.mycompany.net which is fine. I dont fetch user23's mail. But from the LAN I cant send a mail to user23@mycompany.net.
What I would like to do is get Procmail or Sendmail to send/forward the mail for user23@mycompany.net to there account on mail.mycompany.net.
Is there any way to do this or something else that would fix this problem without it being messy for my users?