Github messages for mblaze
 help / color / mirror / Atom feed
* [ISSUE] Handling different envelope-from addresses?
@ 2021-04-15 20:12 Anachron
  2021-04-15 20:23 ` leahneukirchen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Anachron @ 2021-04-15 20:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

New issue by Anachron on mblaze repository

https://github.com/leahneukirchen/mblaze/issues/205

Description:
Not sure if this is the right place to ask, but let's say I want to send mails from `example1@mail.domain` using the account `collection1@mail.domain`. Should setting a different `From` header in mblaze suffice? my MTA is `msmtp` but I cannot figure out how to correctly handle different sender addresses.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Handling different envelope-from addresses?
  2021-04-15 20:12 [ISSUE] Handling different envelope-from addresses? Anachron
@ 2021-04-15 20:23 ` leahneukirchen
  2021-04-15 20:33 ` Anachron
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: leahneukirchen @ 2021-04-15 20:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 296 bytes --]

New comment by leahneukirchen on mblaze repository

https://github.com/leahneukirchen/mblaze/issues/205#issuecomment-820707840

Comment:
I think you want `--read-envelope-from` then.

I use plain From: headers with OpenSMTPD and rules like `match mail-from "@example.org" for any action "..."`

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Handling different envelope-from addresses?
  2021-04-15 20:12 [ISSUE] Handling different envelope-from addresses? Anachron
  2021-04-15 20:23 ` leahneukirchen
@ 2021-04-15 20:33 ` Anachron
  2021-04-15 21:36 ` Anachron
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Anachron @ 2021-04-15 20:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 579 bytes --]

New comment by Anachron on mblaze repository

https://github.com/leahneukirchen/mblaze/issues/205#issuecomment-820712908

Comment:
That's what I use but `msmtp` chooses the wrong account in this case:

```
msmtp: envelope from address example1@mail.domain not accepted by the server
msmtp: server message: 550-Requested action not taken: mailbox unavailable
msmtp: server message: 550 Sender address is not allowed.
msmtp: could not send mail (account default from /home/USER/.msmtprc)
```

How does `msmtp` figure out which account to use for my changed from-address? 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Handling different envelope-from addresses?
  2021-04-15 20:12 [ISSUE] Handling different envelope-from addresses? Anachron
  2021-04-15 20:23 ` leahneukirchen
  2021-04-15 20:33 ` Anachron
@ 2021-04-15 21:36 ` Anachron
  2021-04-16  5:28 ` [ISSUE] [CLOSED] " Anachron
  2021-04-16  5:28 ` Anachron
  4 siblings, 0 replies; 6+ messages in thread
From: Anachron @ 2021-04-15 21:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 891 bytes --]

New comment by Anachron on mblaze repository

https://github.com/leahneukirchen/mblaze/issues/205#issuecomment-820712908

Comment:
That's what I use but `msmtp` chooses the wrong account in this case:

```
msmtp: envelope from address example1@mail.domain not accepted by the server
msmtp: server message: 550-Requested action not taken: mailbox unavailable
msmtp: server message: 550 Sender address is not allowed.
msmtp: could not send mail (account default from /home/USER/.msmtprc)
```

How does `msmtp` figure out which account to use for my changed from-address? 

Edit:
I guess iI have to either edit the default account before sending or provide a mapping to an account for each mail-address like so:

```
# A second mail address at Runbox # The colon tells it to inherit the settings from the previous account 
account runbox2: runbox
from different-email@mydomain.com
```

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ISSUE] [CLOSED] Handling different envelope-from addresses?
  2021-04-15 20:12 [ISSUE] Handling different envelope-from addresses? Anachron
                   ` (2 preceding siblings ...)
  2021-04-15 21:36 ` Anachron
@ 2021-04-16  5:28 ` Anachron
  2021-04-16  5:28 ` Anachron
  4 siblings, 0 replies; 6+ messages in thread
From: Anachron @ 2021-04-16  5:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

Closed issue by Anachron on mblaze repository

https://github.com/leahneukirchen/mblaze/issues/205

Description:
Not sure if this is the right place to ask, but let's say I want to send mails from `example1@mail.domain` using the account `collection1@mail.domain`. Should setting a different `From` header in mblaze suffice? my MTA is `msmtp` but I cannot figure out how to correctly handle different sender addresses.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Handling different envelope-from addresses?
  2021-04-15 20:12 [ISSUE] Handling different envelope-from addresses? Anachron
                   ` (3 preceding siblings ...)
  2021-04-16  5:28 ` [ISSUE] [CLOSED] " Anachron
@ 2021-04-16  5:28 ` Anachron
  4 siblings, 0 replies; 6+ messages in thread
From: Anachron @ 2021-04-16  5:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]

New comment by Anachron on mblaze repository

https://github.com/leahneukirchen/mblaze/issues/205#issuecomment-820916152

Comment:
I've fixed this for now with my `mfrom` script also modifying the `account default` setting in my `~/.msmtprc`.
`! test -e ~/.msmtprc || sed -i "s|account default.*|account default: ${1}|" ~/.msmtprc`

Closing this as it's not an issue with mblaze.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-04-16  5:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 20:12 [ISSUE] Handling different envelope-from addresses? Anachron
2021-04-15 20:23 ` leahneukirchen
2021-04-15 20:33 ` Anachron
2021-04-15 21:36 ` Anachron
2021-04-16  5:28 ` [ISSUE] [CLOSED] " Anachron
2021-04-16  5:28 ` Anachron

Github messages for mblaze

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/mblaze-github

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 mblaze-github mblaze-github/ https://inbox.vuxu.org/mblaze-github \
		mblaze-github@inbox.vuxu.org
	public-inbox-index mblaze-github

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.mblaze


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git