Re: [opensuse] Virtual domain, between Postfix and Qmail



Hudibras wrote:

For example: When you only define a relay domain in relay_domains in
Postfix, no recipient validation is done, since the relay_recipient_maps
parameter is empty. Of course, the documentations tells you to set up
relay_recipient_maps, but as a beginner you might forget to do so.

qmail treats all domains included in a simple text file as locals, so
*only* these domains can relay. I insist on it: qmail is much more
simple and easy than all of that options in sendmail or postfix.
I hope this will be a true explanation of your question...

Uh, probably not. In Postfix you set up a domain as a relay_domain whent
the end destination is not on the Postfix server itself. It will be
relayed to a backend server. That is the case when you have an Exchange or
Domino server and Postfix is the mailgateway. The "Gotcha" is, that
without relay_recipient_maps Postfix will accept all mails for that
domain, it doesn't know which recipient addresses are valid or not. That
is the function of the relay_recipient_maps. It tells Postfix which
addresses are valid recipients for the relay_domains.

What happens without this can be seen here:

# host -t mx sony.com
sony.com mail is handled by 10 mail.global.sprint.com.

Let's try:
# telnet mail.global.sprint.com 25
Trying 65.55.251.22...
Connected to mail.global.sprint.com.
Escape character is '^]'.
220 mail157-blu.bigfish.com ESMTP Postfix EGGS and Butter
ehlo japantest.homelinux.com
250-mail157-blu.bigfish.com
250-PIPELINING
250-SIZE 150000000
250-ETRN
250-STARTTLS
250 8BITMIME
mail from:<mailadmin@xxxxxxxxxxxxxxxxxxxxxxx>
250 Ok
rcpt to:<does-not-exist-never-did-either@xxxxxxxx>
250 Ok
rset
250 Ok
quit
221 Bye
Connection closed by foreign host.

Happy backscatter...

Did you find out the reason? Postfix logs everything, so you should be
able to find the cause of the problem.

No. I didn't find anything: the only real thing is that all those
messages were missed forever.

Strange.

The only situation where I definitely lost a mail was, when I severely
misconfigured my machine: I send the mail to a nonexisting recipient
address. Okay, so Postfix tries to bounce the mail back to the sender
address. Unfortunately, I also used a nonexisting sender address.
In that case, Postfix sends the undeliverable mail to the 2bounce
recipient (postmaster).
Well, you might guess it, postmaster wasn't set to a valid address either.
(^-^)

No. Look. In the worst circumstances, qmail never missed a message, even
though it was a very crazy mail. I can always retrieve that, deleted
from queue, etc. qmail always send a *copy* of the message, and deletes
it only if message has been successed in the counterpart.

So what happens is a mail CAN'T be delivered as in the case I described?
recipient invalid, sender invalid, postmaster invalid? Does Qmail put the
mail in a special undeliverable folder or does it stay in the queue forever?

Where are good sites with accurate documentations and how-tos? I just saw
http://cr.yp.to/qmail.html, which had some nice information, though it
seemed a bit old (they were talking about the situation in 2001).
Yes, this is the "strange" Dan Bernstein site: the beginning of all, but
shupp.org wil be definitive for you. It's easier than done. Other,
www.inter7.com, and much more.
I'll take a look at them. As it happens, I just read a request for help in
the German opensuse list. He is looking for a mailing list on Qmail. Can
you recommend one for him? For the moment, I refered him to
http://www.mail-archive.com/toaster@xxxxxxxxx/info.html.

He is trying to find out how to add a custom header (x-original-recipient)
to each mail. I know how to do this in Postfix, but not with QMail.

Do you have a hint how to do that?


Yes. I do use imap too (in fact, courier-imap); but I can do pop3 and
imap at the same time with qmail; only the MUA configuration and
preferences makes the personal choice. It's the thing I can tell you. My

Postfix doesn't do imap or pop3, that is the job of the pop3 or imap
server. In my case Cyrus (it does pop3 and imap as well), in your case
Courier. Both work well.

English level is not as good as a discussion...

And I want to repeat: all customers sang aleluyas when they noticed mail
service was *really working* and was much faster and reliable than
before. I was really tired with qpopper and that really annoying
configuration of boxes, alltogether in a single file. This is
prehistoric! I installed qmail and life of customers became bright back.
All my servers installed are still there!!! From 2001... till now.

Not bad. I have to change the configuration because Suse does not offer
updates for more than 2 years for the Opensuse distribution. In fact, I
will have to update soon. Suse 10.0 will only be supported for a few more
month now.
The MTA portion of installation does not change, though.


--
Sandy

List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx


Quantcast