[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: postfix can't send and receive mails



> If commenting out the line "mydestination = $myhostname,
> localhost.$mydomain, localhost, satimis.com" on main.cf all incoming
> mails are rejected.

That is how it's supposed to be. You *only* need what is in
virtual_domain_maps, with *correct* entries there, and an *empty*
mydestinations.

You need to read the postfix documentation and to understand what you
are doing. It's difficult before you understand it (it took me quite a
while and was very frustrating), but once you do, playing with mail
servers is fun.


Maybe give Exim a try, that might be easier. The Exim documentation is
the best documentation of anything I've ever seen --- it not only
explains you how you can configure it, but it also explains you how
Exim works and gives you a good general understanding about how mail is
being handled and how that works. It's available as PDF (500+ pages)
and as info. You don't need to read it all at once, just look up in
that documentation how you can do what you want to do, and it comes to
you after some reading.

If you try it, do not use the automatic configuration Debian provides,
but copy the sample configuration
(/usr/share/doc/exim4/examples/example.conf.gz) and adapt it to your
needs. Go step by step and make sure you understand what you are
doing in each step. Check out the exim website. That probably makes the
learning easier than trying to set up postfix like that.

(The automatic configuration does work, but I find it more confusing
than anything else because I would never really know how exim is
configured if I used it. And I don't want to have some automatic
configuration thing tamper with the configuration of my mail server.)


If you want to be thorough, let mail servers aside for now and learn
how to set up a name server first. Go
by /usr/share/doc/HOWTO/en-txt/DNS-HOWTO.gz, that tells you all you
need. DNS and mail servers are related, and knowing about DNS will help
you a lot in understanding mail servers. It will make the documentation
of mailservers much easier to read.


Reply to: