RHEL4: Sendmail won't forward email
I am having trouble with sendmail. I'm using RedHat Enterprise ES. My server needs to be able to accept mail for ocsnetwork.net, marysapparel.com, and ogdenscomputers.com. I have never set up sendmail before so I configured it as best as I could based on tutorials on the internet. When I send email to an address that I have configured in sendmail, the email is received on my server fine. If I send an email from my server to an outside address, the email goes through fine but has my local Linux username instead of what I have configured in genericstable. For example, if I log in as root and send an email to nelsonogden(at)gmail.com, I receive the email on my Gmail account, but it appears to have come from root(at)ocsnetwork.net, not admin(at)ocsnetwork.net. This is my first issue, but not the most important.
My main problem is that any email sent to an address on my server that needs to be forwarded to an outside account, won't forward. I never get an error email from the sending account and also don't get any messages on my server. The email also never arrives at the destination account. For example, if I send an email to nogden(at)ocsnetwork.net, I expect it to be redirected to nelsonogden(at)gmail.com. The other two addresses in my virtusertable work fine, but they are not forwarding email to an outside address. My config files are posted below. To keep this post shorter, I removed any lines from my sendmail.mc that were commented out. My sendmail.mc: Code:
divert(-1)dnl Code:
localhost.localdomain RELAY Code:
nogden nogden@ocsnetwork.net Code:
ocsnetwork.net Code:
nogden@ocsnetwork.net nelsonogden@gmail.com |
All times are GMT -5. The time now is 09:32 AM. |