Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using different smtp for sending mails

1 view
Skip to first unread message

deve...@isl-gbr.de

unread,
Oct 3, 2007, 6:41:11 PM10/3/07
to
Using postfix as my MTA and msmtp to relay mails to an smtp auth server.
Works without problems, but recipient_bcc_maps makes me a headache.
When trying to send the copy msmtp uses the "from" to identify the
account which is to use. But since the bcc contains the original sender,
it fails because it can't determine the account which is to use.
So my question is: is there a way to tell postfix to use maybe something
like another smtp service for recipient_bcc_maps, such as maybe msmtp2
which i can configure to use a default account to send these mails over?
Or are there any options possible in recipient_bcc_maps to give msmtp
the parameters manually (such as --from=def...@abc.com) ?

mouss

unread,
Oct 4, 2007, 6:36:27 AM10/4/07
to
deve...@isl-gbr.de wrote:
> Using postfix as my MTA and msmtp to relay mails to an smtp auth server.
> Works without problems, but recipient_bcc_maps makes me a headache.
> When trying to send the copy msmtp uses the "from" to identify the
> account which is to use. But since the bcc contains the original sender,
> it fails because it can't determine the account which is to use.

I don't understand. how do you do for other email (normal mail, not the
bcc copies)? it also has the oiginal sender.

> So my question is: is there a way to tell postfix to use maybe something
> like another smtp service for recipient_bcc_maps, such as maybe msmtp2
> which i can configure to use a default account to send these mails over?

use a specific domain for the bcc (such as @bcc.exaample.com) so that
you can use transport_maps. you can use generic maps to rewrite the
address (remove bcc part for example) if you need to do so.

> Or are there any options possible in recipient_bcc_maps to give msmtp
> the parameters manually (such as --from=def...@abc.com) ?

see above. the idea is to encode such information in the recipient
address (and remove it at some time if necessary).

deve...@isl-gbr.de

unread,
Oct 4, 2007, 7:30:46 AM10/4/07
to
> deve...@isl-gbr.de wrote:
>> Using postfix as my MTA and msmtp to relay mails to an smtp auth server.
>> Works without problems, but recipient_bcc_maps makes me a headache.
>> When trying to send the copy msmtp uses the "from" to identify the
>> account which is to use. But since the bcc contains the original sender,
>> it fails because it can't determine the account which is to use.
>
> I don't understand. how do you do for other email (normal mail, not the
> bcc copies)? it also has the oiginal sender.
>
when using recipient_bcc_maps the original sender of the message is kept
as "from"
Example:
When i send a mail from an internal adress like "testa...@abc.de",
msmtp identifies the account and uses the account "testaccount".
When using the recipient_bcc_maps, i recieve a mail from
"othera...@def.gh", and it keeps that "from" adress in the copy which
is made (and this is absolutely required here), so msmtp tries to find an
account for "othera...@def.gh", which fails of course, because there is
no account for it.


>> So my question is: is there a way to tell postfix to use maybe something
>> like another smtp service for recipient_bcc_maps, such as maybe msmtp2
>> which i can configure to use a default account to send these mails over?
>
> use a specific domain for the bcc (such as @bcc.exaample.com) so that
> you can use transport_maps. you can use generic maps to rewrite the
> address (remove bcc part for example) if you need to do so.
>
>> Or are there any options possible in recipient_bcc_maps to give msmtp
>> the parameters manually (such as --from=def...@abc.com) ?
>
> see above. the idea is to encode such information in the recipient
> address (and remove it at some time if necessary).
>

So i use recipient_bcc_maps to send it to a specific domain, and
transport_maps to give the necessary options for that? Ok, will try that,
thankya ;)

0 new messages