Actually, I think I was wrong: Even though I had not configured SRS for a particular domain, I can see from the headers of the message forwarded to Gmail that it used the SRS setup for the domain configured in /var/qmail/control/srs_domain
And adding multiple domains to /var/qmail/control/srs_domain does not seem to do anything: the first domain listed there is always used. If someone else tries this out, please correct me if I'm wrong! Best, Peter On Fri, Jan 13, 2023 at 3:11 PM Peter Peltonen <peter.pelto...@gmail.com> wrote: > Hi Andreas, > > Unfortunately it needs to be done for every domain that forwards email > outside the toaster. > > Best, > Peter > > On Wed, Jan 4, 2023 at 11:08 PM Andreas <a...@unet.de> wrote: > >> Hi Peter, >> >> Did you do that for every domain separatly or once just for the server? >> >> Andreas >> >> Am 04.01.23 um 18:18 schrieb Peter Peltonen: >> >> Okay I tested this setup and it seems to work, mail gets through and I >> get spf=pass for it in Gmail. >> >> The only difference to the procedure I posted earlier were: >> >> - needed to add srs.xyz.com to morercpthosts and not to rcpthosts as I >> have more than 50 domains hosted >> - at the end I ran qmailctl cdb and qmailctl restart, not sure if needed >> >> Best, >> Peter >> >> >> >> On Tue, Jan 3, 2023 at 11:22 AM Peter Peltonen <peter.pelto...@gmail.com> >> wrote: >> >>> Googling "srs qmailtoaster" gave me this link: >>> >>> >>> http://wiki.qmailtoaster.net/index.php/Configuring_SRS_on_Toaster_1.03-1.3.13%2B >>> >>> which does not work, it seems qmailtoaster.com should be used instead >>> of .net >>> >>> Okay now we have the instructions I guess I could try to test it, I have >>> a spare registered domain I could test with. Does this sound ok procedure: >>> >>> >>> - setup domain xyz.com with SPF with hard fail (-all) and the >>> toaster as the MX >>> - send email from xyz.com to GMail through our toaster: should pass >>> ok >>> - setup forwarding from xyz.com to GMail >>> - send email to xyz.com: should fail because GMail does not accept >>> - setup SRS at toaster: >>> >>> >>> 1. create NS record for domain srs.xyz.com with MX pointing to our >>> toaster >>> 2. echo srs.xyz.com > /var/qmail/control/srs_domain >>> 3. mkpasswd -l 32 > /var/qmail/control/srs_secrets >>> 4. mkpasswd -l 32 >> /var/qmail/control/srs_secrets >>> 5. (repeat mkpasswd as many times you need, not sure how many is >>> really needed?) >>> 6. echo 7 > /var/qmail/control/srs_maxage >>> 7. echo 8 > /var/qmail/control/srs_hashlength >>> 8. qmailctl restart >>> 9. echo srs.xyz.com >> /var/qmail/control/rcpthosts >>> 10. echo srs.xyz.com:srs >> /var/qmail/control/virtualdomains >>> 11. echo "| /var/qmail/bin/srsfilter" > >>> /var/qmail/alias/.qmail-srs-default >>> (ownershp of other alias files on my server are user alias group >>> nofiles, so probably this should be changed to the same?) >>> >>> >>> - send email to xyz.com: should pass ok >>> >>> >>> What do you think Angus? >>> >>> Best, >>> Peter >>> >>> >>> On Mon, Jan 2, 2023 at 7:52 PM Angus McIntyre <an...@pobox.com> wrote: >>> >>>> >>>> >>>> Peter Peltonen wrote on 1/2/23 11:57 AM: >>>> > Some of my toaster users have their email forwarded to Gmail ... Some >>>> > googling around tells me that SRS could be the solution for this >>>> > problem. >>>> > >>>> > There is info on this at Qmailtoaster Wiki, but the site seems to be >>>> > somehow broken. >>>> >>>> Which page are you looking at, and in what way does it seem broken? >>>> >>>> >>>> >>>> http://wiki.qmailtoaster.com/index.php/Configuring_SRS_on_Toaster_1.03-1.3.13%2B >>>> >>>> currently loads fine for me, and looks as if it has good information. >>>> >>>> I should stress that I haven't tried this yet. I didn't know about SRS >>>> until you posted this (thank you!) but I'm having the same issue as you >>>> and it sounds as if this might be just what I need. >>>> >>>> Would anyone who's actually implemented this care to comment? >>>> >>>> Angus >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com >>>> For additional commands, e-mail: >>>> qmailtoaster-list-h...@qmailtoaster.com >>>> >>>> >>