Re: [MlMt] Use an SMTP server without an associated IMAP server?

2024-03-13 Thread Quentin Stafford-Fraser
On 11 Mar 2024, at 8:16, Philip Paeps wrote:

> On 2024-03-07 00:06:49 (+0800), Quentin Stafford-Fraser wrote:
>> What I really want is to have more than one SMTP server associated with my 
>> main IMAP account, and select the outgoing server based on my From: address. 
>>  I don't think there's a way to do that?
>
> There is ... but it's a bit fiddly.  As far as I can tell, it's not 
> officially documented anywhere, but Benny is very good at not breaking things.
>
> I don't know how I figured this out...

Philip - that's brilliant!  Thank you very much!



>> Interestingly Fastmail do provide exactly this facility in their (very good) 
>> webmail interface, but when I tried switching to that, I realised that, good 
>> as it is, it isn't Mailmate... :-)
>
> Fastmail is smart enough to use the correct SMTP server even when you send 
> from MailMate. :-)


Ah...  Are you saying that, now I have it set up on Fastmail, if I send through 
their SMTP server they will proxy to the appropriate third-party one?  If so, 
that's brilliant, and means I don't need to bother with this!

(I could just try it and look at the resulting headers, but I didn't want to 
undo the nice system you've helped me set up yet!)

All the best,
Quentin
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Use an SMTP server without an associated IMAP server?

2024-03-11 Thread Philip Paeps

On 2024-03-07 00:06:49 (+0800), Quentin Stafford-Fraser wrote:
What I really want is to have more than one SMTP server associated 
with my main IMAP account, and select the outgoing server based on my 
From: address.  I don't think there's a way to do that?


There is ... but it's a bit fiddly.  As far as I can tell, it's not 
officially documented anywhere, but Benny is very good at not breaking 
things.


I don't know how I figured this out.  The archives of this mailing list, 
presumably. :)


You need to set this up with MailMate closed.

1. Add to ~/Library/Application Support/MailMate/Submission.plist

   {   name = "Some name that makes sense to you";
   serverURL = "smtp://usern...@smtp.example.net";
   },

   The plist may be in another format (xml, json...).  If it's a binary 
file,
   use plutil(1) to convert it to a plain text format.  Whatever format 
the
   file is in, check it with "plutil -lint Submission.plist" after 
changing.


2. Add to ~/Library/Application Support/MailMate/Identities.plist

   {   emailAddresses = "usern...@example.net";
   name = "Example User";
   serverURL = [copy this from your existing identity];
   smtp = "smtp://usern...@example.net";
   },

   This file may also be in a different format.  Follow whatever format 
it's
   in and check with "plutil -lint Identities.plist" after making 
changes.


3. Maybe optional ... maybe not ... enable an SMTP server dropdown

   Run "defaults write com.freron.MailMate MmSMTPAlternativeEnabled 
-bool YES"


   This will add a new dropdown to pick the SMTP server in the editor.  
In
   theory, with the configuration above, MailMate should be smart 
enough to

   pick smtp.example.net when you send mail from u...@example.net, but
   this lets you pick the server explicitly.

   If the selector gets in your way, and it looks like MailMate is 
smart

   enough, you can disable this again after testing.

Interestingly Fastmail do provide exactly this facility in their (very 
good) webmail interface, but when I tried switching to that, I 
realised that, good as it is, it isn't Mailmate... :-)


Fastmail is smart enough to use the correct SMTP server even when you 
send from MailMate. :-)


Philip
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Use an SMTP server without an associated IMAP server?

2024-03-07 Thread Quentin Stafford-Fraser

Ah, thanks, Bill - that's a good solution: using limited IMAP subscriptions!  I 
had thought of duplicating the IMAP settings from another account, but didn't 
want to have two copies of my mail.

Your subscriptions+special folders setup is a nice one!

Quentin
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


Re: [MlMt] Use an SMTP server without an associated IMAP server?

2024-03-07 Thread Bill Cole

On 2024-03-06 at 11:06:49 UTC-0500 (Wed, 06 Mar 2024 16:06:49 +)
Quentin Stafford-Fraser 
is rumored to have said:


So...

What I really want is to have more than one SMTP server associated 
with my main IMAP account, and select the outgoing server based on my 
From: address.  I don't think there's a way to do that?


Not obviously.

I do have a workaround that works for me, but I can't be sure that it 
would for you.


I am a contributor to ASF projects and so I have a forwarding-only 
apache.org address. Because I'm also a PMC member and Foundation member, 
much of the mail hitting that address is fairly important to me. However 
all of that mail ends up in my main personal account (which also handles 
many use-specific addresses, e.g. for this list.) If I use my personal 
account to send mail with the apache.org address, it will not get very 
far because ASF has therir own SMTP infrastructure that I am supposed to 
send through when using that address and a "-all" SPF record. So I have 
an account named "Apache Send-Only" with its "email address" field set 
to billc...@apache.org with no Address Pattern. The IMAP config points 
to my own server, just like my main account. My main account uses 
'b...@scconsult.com' as its email address, but it also has a complex 
Address Pattern configured that assures that it is associated only with 
addresses that both deliver to that account AND can use my SMTP server. 
(I also use a different local username for authentication and final 
delivery that isn't in any email address, but that's not critical and 
not everyone can do that.)


The Apache account therefore ends up 'owning' the messages sent to my 
ASF address. If I reply to a message that was originally sent to my ASF 
address, MM knows to use that address in a reply. It uses the ASF SMTP 
server to send messages, but it drops the 'Sent' copies of messages into 
the right IMAP folder. The account is only subscribed to Drafts and 
Sent, and


My workaround, for now, is to add another IMAP account that I 
otherwise barely use, set it up with the PoBox email address and SMTP 
server, and Mailmate will then send things correctly that way.  I 
don't need to worry that the IMAP server is empty, but it does have to 
be a genuine working IMAP server, or Mailmate will mark that account 
as offline.


It's a bit of a nuisance, too, because Mailmate will also save Drafts 
and Sent messages onto that otherwise-unused IMAP server.  So I then 
need to set up rules to move everything to the correct account.  And 
then I need to do this same setup on all of my machines...


You can point multiple MM accounts at the same IMAP account and define 
the 'special' mailboxes differently for each MM account. So as above, I 
have distinct Sent and Drafts folders for the ASF traffic and tell MM to 
use them for the ASF account.



So does anyone have a good way of saying  "Here's an SMTP-only server 
which you should use when the From address is X" ?


Interestingly Fastmail do provide exactly this facility in their (very 
good) webmail interface, but when I tried switching to that, I 
realised that, good as it is, it isn't Mailmate... :-)


Quentin

___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate



--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate


[MlMt] Use an SMTP server without an associated IMAP server?

2024-03-06 Thread Quentin Stafford-Fraser
I have about a dozen email addresses and they all eventually end up in the same 
Fastmail IMAP account, either because they're my domains and the MX is set up 
to deliver there, or because they're forwarded from other mail services over 
which I have less control.

My most-used email address is this 'pobox.com' one, which has been my main 
address since around the turn of the millennium, and is purely a forwarding 
alias (hence the 'PO Box' name).

PoBox provide an SMTP server for sending, but not (on my forwarding-only 
account, anyway) an IMAP server.  So I can't set it up as a fully-fledged 
separate account in Mailmate.  But these days, I really do need to send through 
the same SMTP server as my From: address.

So...

What I really want is to have more than one SMTP server associated with my main 
IMAP account, and select the outgoing server based on my From: address.  I 
don't think there's a way to do that?

My workaround, for now, is to add another IMAP account that I otherwise barely 
use, set it up with the PoBox email address and SMTP server, and Mailmate will 
then send things correctly that way.  I don't need to worry that the IMAP 
server is empty, but it does have to be a genuine working IMAP server, or 
Mailmate will mark that account as offline.

It's a bit of a nuisance, too, because Mailmate will also save Drafts and Sent 
messages onto that otherwise-unused IMAP server.  So I then need to set up 
rules to move everything to the correct account.  And then I need to do this 
same setup on all of my machines...

So does anyone have a good way of saying  "Here's an SMTP-only server which you 
should use when the From address is X" ?

Interestingly Fastmail do provide exactly this facility in their (very good) 
webmail interface, but when I tried switching to that, I realised that, good as 
it is, it isn't Mailmate... :-)

Quentin

___
mailmate mailing list
mailmate@lists.freron.com
https://lists.freron.com/listinfo/mailmate