• Cyrus Delivery with realm enable mailboxes for multiple domains

    From Guy Tech@21:1/5 to All on Wed Nov 8 07:11:08 2023
    Hi,

    I am trying to set up sendmail to deliver received messages using realm formatted mailboxes (ie user@domain) instead of user.

    So far I can get it work by with this
    Mcyrus, P=/usr/lib64/cyrus/deliver, F=lsDFMnPqSA5@w/:|, S=EnvFromL, R=EnvToL/HdrToL,
    U=cyrus:mail, T=DNS/RFC822/X-Unix,
    A=deliver -e -m $h -- $u@$M
    [I changed "A=deliver -e -m $h -- $u" to "A=deliver -e -m $h -- $u@$M"]

    This will work fine you only handling email from a single domain, but will not work if need to handle multiple domains. I am at a loss to figure out how to format deliver to support multiple domains. Any suggestions?

    FYI: This is to support when mail clients like Microsoft Outlook no longer accept username as it has to be a full eMail address for the account.

    Thanks for your help!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Guy Tech on Wed Nov 8 11:17:30 2023
    Guy Tech wrote:

    formatted mailboxes (ie user@domain) instead of user.

    Mcyrus, P=/usr/lib64/cyrus/deliver, F=lsDFMnPqSA5@w/:|, S=EnvFromL, R=EnvToL/HdrToL,

    op.*:
    5.5. M -- Define Mailer
    ...
    Sender Rewriting set(s) for sender addresses
    Recipient Rewriting set(s) for recipient addresses

    Your mailer uses the "L"ocal version of the rulesets, you probably
    want to change this to the "SMTP" version -- compare the SMTP mailers.

    Give it try in test mode
    sendmail -bt
    ?
    /tryflags er
    /try cyrus user@your.domain
    /tryflags hr
    /try cyrus user@your.domain

    (disclaimer: I haven't tried it myself)

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Thu Nov 9 09:23:30 2023
    Am 08.11.2023 um 07:11:08 Uhr schrieb Guy Tech:

    FYI: This is to support when mail clients like Microsoft Outlook no
    longer accept username as it has to be a full eMail address for the
    account.

    It that really the case?
    If so, MS is going to become more insane.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)