Magnus Bäck wrote:
On Wednesday, December 03, 2008 at 19:52 CET,
"Roderick A. Anderson" <[EMAIL PROTECTED]> wrote:
I'm trying to test my Postfix/Dovecot set up to determine why (what
I'm doing wrong) a Perl script using Mail::Sender is failing. Errors
say connection failed -- rather ambiguous I'd say! :-)
Please post full logs instead of anecdotes. Right now it's not even
obvious that it's Postfix that's complaining. For SASL debugging help
output from saslfinger is often useful (or perhaps not that useful with
Dovecot).
Sorry.
This is for a system with multiple (virtual?) domains.
I'm using telnet to test but am having a problem figuring out what I
should use for the actual username before it is base64 encoded.
You can choose any username you like as long as it matches whatever is
in your credential database. So far we don't know anything about that.
MySQL, sasldb, LDAP, what?
smtpd_sasl_type = dovecot
I'm having no problems using the system and Thunderbird seems to have
done the right thing when I created the SMTP server settings for each
of the domains.
I did not find any examples via Google and both the Postfix and
Dovecot sites using telnet to test with virtual domains.
Why do you insist on testing this with telnet? You will introduce
another possible error source (incorrect encoding of the credentials)
and it's a use case that you're supposedly not really interested in.
Because I can do it one step at a time and see the results that Postfix
sends back. I hadn't thought of telnet possibly munging base64 encoded
values. They looked like ASCII-only to me.
[...]
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
Useless since local_transport != local.
Thanks. This was built by looking at _many_ HOWTOs and documentation
pages and based on a working non-virtual main.cf file.
[...]
local_recipient_maps =
local_transport = virtual
Why fight the system? If a domain is a virtual mailbox domain, list the
domain in virtual_mailbox_domains and leave local_transport alone.
Again thanks. I'll study up on this but, as above, it came from far too
many sources of information. I got it working, for the most part, and
then let it ride. I think it might have been done this way because I'm
using Dovecot's deliver and dovecot-sieve. Could have been because I'm
putting mail in /var/mail/vhosts/%d/%u/ and have per-domain password
files. Who knows; someday I too might learn think and speak SMTP like a
native and get it all correct.
Rod
--