Click to See Complete Forum and Search --> : Forwarding Email (was:Email)


wrender
12-15-2004, 11:57 AM
Hi,

I have a rogers@home account for my internet. I have purchased a few domains, which I would like to setup email for. I tried a while back with sendmail, and got it up and running, but I ran into a few problems.

I could receive mail that was sent to my domains properly, but when I went to send out mail, it was rejected some of the time. After a while I noticed that I was blacklisted on some firewalls. It looks as though they keep a list of all rogers@home ip addresses, and if they are receiving mail from those, they block it.

So my general question would be... Can I setup my domain email accounts so that they can properly send email to anywhere without getting blocked?
It would also be good if people at a different location and ip could also send using their accounts with my domain. So they would basically put in the information for my server, and then be able to send email using their email account on my domain.

ph34r
12-15-2004, 12:25 PM
Setup your mta to forward outgoing mail thru rogers' smtp server. That way, it will come from something that isn't blacklisted.

wrender
12-15-2004, 12:31 PM
Perfect, thanks. I used sendmail before, but do you have any recommendations of another MTA?

davisfactor
12-15-2004, 01:44 PM
If all you want to do is forward outbound mail to another SMTP server use NullMailer.

I use it on a lot of my servers and it works really well. There are just two config files to edit:

:: /etc/nullmailer/adminaddr
You'll want to put the user you want all admin emails to go to. This can be your main email address, or a user on the local system.

:: /etc/nullmailer/remotes
You'll want to put the SMTP server you're forwarding your mail to. Your Rogers SMTP server will go here.

Then restart nullmailer using /etc/init.d/nullmailer restart and try sending mail to someone.

To view the mail queue, use the command mailq.

And be sure to check your logs to make sure everything is working ok.

A good test would be something like this:

echo test | mail yourother@address.com -s "subject goes here" ; tail -f /var/log/mail.info

Your mail.info file might be in /var/log/mail/.

Hopefully this helps!

wrender
12-15-2004, 02:30 PM
yeah, that's great.
So I have to setup a mail service like sendmail first? then setup this fowarding service?

Thanks!

davisfactor
12-15-2004, 07:39 PM
Nullmailer is a replacement for Sendmail. It takes over all MTA responsilities.

The only "transferring" that it does is forwarding mail to another server.

You can't receive mail using Nullmailer. There is no SMTP daemon that's listening for incoming connections. It's only purpose is to relay mail outbound.

If you're running Debian, installing nullmailer is as easy as typing apt-get update; apt-get install nullmailer. ;)