| Author |
Sendmail forwarding
|
|
| Boulware5 2003-01-15, 10:56 pm |
| One of my Linux+ books says you can create a .forward file in your home directory and set it as such:
\boulware, boulware@myisp.com
In this instance all mail sent to "boulware" goes to the local account and also the external email account.
Well I tried this and it didn't. It went to my local account but not the external email account.
This comes from the book that had the SCSI ID priorities totally wrong so I don't trust everything it says.  | |
| Mr. Linux Guy 2003-01-16, 6:21 am |
| the ".forward" file should just contain the email address if you want it to get forwarded to a different server, as in:
boulware5@examnotes.net
Nothing else should be in the file. | |
| Boulware5 2003-01-16, 10:02 am |
| LOL, chalk up yet another big error to the Osborne Linux+ study guide. | |
| Mr. Linux Guy 2003-01-16, 10:10 am |
|  | |
| Mr. Linux Guy 2003-01-16, 10:44 am |
| Actually, I think you can forward them to any number of email accounts. The "\boulware" also mails your local account, although this is rarely used. | |
| Boulware5 2003-01-16, 5:16 pm |
| Hmm...Still don't seem to be working.
What I did:
$ mail -s test name
Blah Blah
Ctrl+D
My .forward had it both ways you said, with the forward slash and also just the external email address. It gets sent to my local account when I add the forward slash, but not my external (ISP) email account.
What I haven't tried yet which could work is to have an /etc/aliases and do something like boulware: boulware@isp.com
Randy, while I got you here....Is there a way to save IpTables chains? I made a rule to prevent against a smurf attack (I blocked all traffic destined to my local subnet's broadcast address). After a reboot, I don't see it (IpTables -L). How do you save it after creating a new rule? Couldn't find it in the man page. | |
| Mr. Linux Guy 2003-01-17, 6:50 am |
| To save iptables rules you just use:
# service iptables save
Usually the default in sendmail is to forward to a local account if the slash is present and any account if it is not. Do you have sendmail set up to allow external forwarding? Also check your firewall rules. | |
| Boulware5 2003-01-17, 10:40 am |
| I can send to external accounts just fine. The .forward file don't work though. It doesn't matter....I just like to practice the things I read. If it don't work, it don't work. | |
| Mr. Linux Guy 2003-01-17, 10:43 am |
| Yes, but it *should* work. there must be some configuration setting that we have overlooked. I will check it out and see if I can find anything. |
|
|
|