You are not logged in.

#1 2010-06-14 16:12:53

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Complete newbie to postfix, some guidance?

What I'm aiming for is a mailserver that will allow me to send/receive mail both locally and through the Internet. I will be ending my hosting with my provider (money issues) and need to transfer all my existing stuff to my home box, with DynDNS giving me a hostname to cover my dynamic IP. I plan on routing my existing domain name to the DynDNS hostname, since they offer dynamic IP services. So the actual route will be sporkbox.us -> sporkbox.ath.cx -> my dynamic IP. Convoluted? Yes. Optimum? No. The only way for this to work? As far as I know, yes.

I've looked around at a few guides but it's all very complicated. If there are any good resources out there that make understanding feasible, please link me to them. I've searched this forum but didn't find anything very helpful.

I have no idea where to begin to fix this up, since currently the mailserver is... odd.

http://codepad.org/WAOfJbFJ <--- /etc/postfix/main.cf

http://codepad.org/hf3tZ3Zv <--- ~/.mutt/muttrc

Any hope for the clueless? sad

Offline

#2 2010-06-14 18:31:33

andresp
Member
Registered: 2010-05-29
Posts: 62

Re: Complete newbie to postfix, some guidance?

Yes, most guides assume you'll be installing procmail+spamassasin+squirrel+courier-imap+...

Anyway, these are the few straightforward guides I've found:

* For setting up a ssl encrypted connection to a relay (say, sending email through google) - http://ubuntu-tutorials.com/2008/11/11/ … tpgmailcom

* Couple that with the local mail host delivery article - [wiki]Local Mail Delivery with Postfix[/wiki].

After you have a local setup, read on the guides I've linked below, but only pay attention to fetchmail and redirections based on local/foreign recipient and maps; e.g., user@localhost.localdomain -> user@gmail.com.

Once you have postfix+fetchmail, you'll probably want to enhance the setup with at least with procmail to divide your mail into various maildirs. If you rather not run postfix + procmail, look into exim. But remember, you do not need anything else to have a mail setup. Postfix + fetchmail are the bare basics!

Nice advanced guides that happen to include fetchmail setup:
http://www.hypexr.org/linux_mail_server.php (this one is done by an arch user and he's alsu using dyndns)
http://www.syntheticzero.com/howto/vmail.php
http://freshmeat.net/articles/gmail-on- … -fetchmail


A few things while reading these:
* the archlinux postfix package has sasl, no need to recompile
* using cat /certfile.crt > /etc/postfix/cert.pem is unnecessary:

smtp_tls_CAfile = /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt

*you do not need .forward files in root or anyone's $HOME, just write this in
the aliases file:

root: andresp

Offline

Board footer

Powered by FluxBB