I have a RH5.4 box that I want to configure to use sendmail to relay any mail addressed @mydomain.local to forward to my exchange server .
The exchange server FQDN is mail.mydomain.local
All email addresses in exchange re xyz@mydomain.local
I still want the local server to be able to send to its local mailbox via.. root, or ftp local users. So I don't want mail going to root to get forwarded to my exchange server.
I've played around with a lot of configurations and so far the best I can do is get everything to forward to my exchange server using
"define(`mail_hub', `exchange server name') and the use of StickyHost.
But then of course all of my mails to root. ..etc..fail since there is no root@mydomain.local. and anyway I don't want that mail to go there.
This particular linux machine is not on the windows domain. Now I do have other linux machines that are on the domain via samba..and they have no trouble forwarding to exchange, in fact I didn't even have to change the default configuration to get it to work.
I have also tried setting up SMART_HOST to point to `relay:mydomain.local but so far it isn't working.
When I type sendmail -bv myuser@mydomain.local and I get User unknown if I do
sendmail -bv myuser@mail.mydomain.local I get "deliverable: mailer esmtp, host 1.10.12.13, user myuser@mail.mydomain.local "
However there is no mail user myuser@mail.mydomain.local so it fails anyway. SO if I use the FQDN of the mail server it can connect..but of course that isn't the name of the mail accounts so it fails. If I use the actual email it just gives me unknown.
any help is appreciated.
The exchange server FQDN is mail.mydomain.local
All email addresses in exchange re xyz@mydomain.local
I still want the local server to be able to send to its local mailbox via.. root, or ftp local users. So I don't want mail going to root to get forwarded to my exchange server.
I've played around with a lot of configurations and so far the best I can do is get everything to forward to my exchange server using
"define(`mail_hub', `exchange server name') and the use of StickyHost.
But then of course all of my mails to root. ..etc..fail since there is no root@mydomain.local. and anyway I don't want that mail to go there.
This particular linux machine is not on the windows domain. Now I do have other linux machines that are on the domain via samba..and they have no trouble forwarding to exchange, in fact I didn't even have to change the default configuration to get it to work.
I have also tried setting up SMART_HOST to point to `relay:mydomain.local but so far it isn't working.
When I type sendmail -bv myuser@mydomain.local and I get User unknown if I do
sendmail -bv myuser@mail.mydomain.local I get "deliverable: mailer esmtp, host 1.10.12.13, user myuser@mail.mydomain.local "
However there is no mail user myuser@mail.mydomain.local so it fails anyway. SO if I use the FQDN of the mail server it can connect..but of course that isn't the name of the mail accounts so it fails. If I use the actual email it just gives me unknown.
any help is appreciated.