Discussion:
[Pkg-exim4-users] Sending using one of two accounts based on receive address
Tomas Nordin
2016-12-12 20:28:37 UTC
Permalink
Hello Exim4 Users

I have two accounts with two different "smart-hosts", one is at
posteo.net and one is at kth.se. I am getting my mail from the servers
using offlineimap, reading it in emacs using notmuch, (maildir). I am
sending mail using exim4 through the smart-host posteo.net.

If I remember correctly I have configured exim by using the
dpkg-reconfigure exim4-config thing. It was not too hard but really I
did not absorb very much of it's structure and workings. Once setup to
work I have been happy. Almost.

I think it is possible to reply on a message using one of the two
accounts based on through which host I received the message. Is it
possible to get some guidance from here on how to set that up. Does this
make sense? As I have it now, I can receive a message sent to me at
kth.se and when I reply on that the receiver get my message from me at
posteo.net.

I will gladly post relevant configurations but probably it will be
easiest if I get prompted to show this or that first.

$ uname -a
Linux flaptop 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux

Happy mailing
--
Tomas
Andreas Metzler
2016-12-15 18:48:28 UTC
Permalink
Post by Tomas Nordin
I have two accounts with two different "smart-hosts", one is at
posteo.net and one is at kth.se. I am getting my mail from the servers
using offlineimap, reading it in emacs using notmuch, (maildir). I am
sending mail using exim4 through the smart-host posteo.net.
If I remember correctly I have configured exim by using the
dpkg-reconfigure exim4-config thing. It was not too hard but really I
did not absorb very much of it's structure and workings. Once setup to
work I have been happy. Almost.
I think it is possible to reply on a message using one of the two
accounts based on through which host I received the message.
[...]

Exim's string expansions make it possible to use different smarthosts
for different sender addresses. However this is not a feature provided
by the Debian exim configuration.

See https://bugs.debian.org/750122

cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
Tomas Nordin
2016-12-15 20:06:52 UTC
Permalink
Post by Andreas Metzler
Exim's string expansions make it possible to use different smarthosts
for different sender addresses. However this is not a feature provided
by the Debian exim configuration.
Ok. Is there another package to recommend for this purpose?
Post by Andreas Metzler
See https://bugs.debian.org/750122
cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
_______________________________________________
Pkg-exim4-users mailing list
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exim4-users
Andreas Metzler
2016-12-17 07:20:34 UTC
Permalink
Post by Tomas Nordin
Post by Andreas Metzler
Exim's string expansions make it possible to use different smarthosts
for different sender addresses. However this is not a feature provided
by the Debian exim configuration.
Ok. Is there another package to recommend for this purpose?
Not that I am aware of, people usually do this in the MUA nowadays.

cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
Tomas Nordin
2017-03-12 20:37:35 UTC
Permalink
Post by Andreas Metzler
Post by Tomas Nordin
Ok. Is there another package to recommend for this purpose?
Not that I am aware of, people usually do this in the MUA nowadays.
The problem had an easy solution finally for me, using Notmuch with
emacs and installing the msmtp package. The msmtp package has an
easy-to-use configuration file example in the manual (man) and the
Notmuch wiki has some hints on what to do with emacs variables for msmtp
on it's wiki: https://notmuchmail.org/emacstips/#content

It occurs to me that for many desktop users of Debian, this shouldn't be
a very uncommon wish, yet not trivial to figure out how to.

Thanks anyway
--
Tomas

Loading...