#2055 [postfix] Add mailman staging lists
Merged 10 months ago by zlopez. Opened 10 months ago by zlopez.
fedora-infra/ zlopez/ansible mailman_update  into  main

roles/base/files/postfix/main.cf/main.cf.mailman01.stg.iad2.fedoraproject.org roles/base/files/postfix/main.cf/main.cf.mailman01.stg.phx2.fedoraproject.org
file renamed
+1 -1
@@ -158,7 +158,7 @@ 

  #

  mydestination = $myhostname,

                  localhost.$mydomain, fedora.redhat.com, localhost,

-                 lists.stg.fedoraproject.org, lists.pagure.io

+                 lists.stg.fedoraproject.org, lists.pagure.io, lists.stg.fedorahosted.org

  #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

  #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,

  #	mail.$mydomain, www.$mydomain, ftp.$mydomain

@@ -305,7 +305,7 @@ 

  #

  #relay_domains = $mydestination

  

- relay_domains = $mydestination lists.fedoraproject.org lists.fedorahosted.org fedorahosted.org lists.pagure.io

+ relay_domains = $mydestination lists.fedoraproject.org lists.fedorahosted.org fedorahosted.org lists.pagure.io lists.stg.fedoraproject.org lists.stg.fedorahosted.org lists.stg.pagure.io

  

  # INTERNET OR INTRANET

  

@@ -302,3 +302,6 @@ 

  redhat.com smtp:[mx2.redhat.com]

  .redhat.com smtp:[mx2.redhat.com]

  ceylon-lang.org smtp:[mx2.redhat.com]

+ lists.stg.fedoraproject.org  smtp:[mailman01.stg.iad2.fedoraproject.org]

+ lists.stg.fedorahosted.org   smtp:[mailman01.stg.iad2.fedoraproject.org]

+ lists.stg.pagure.io          smtp:[mailman01.stg.iad2.fedoraproject.org]

@@ -4,3 +4,7 @@ 

  lists2.fedoraproject.org smtp:[mailman01.vpn.fedoraproject.org]

  lists.pagure.io          smtp:[mailman01.vpn.fedoraproject.org]

  fedorahosted.org         smtp:[bastion.vpn.fedoraproject.org]

+ 

+ lists.stg.fedoraproject.org  smtp:[bastion.vpn.fedoraproject.org]

+ lists.stg.fedorahosted.org   smtp:[bastion.vpn.fedoraproject.org]

+ lists.stg.pagure.io          smtp:[bastion.vpn.fedoraproject.org]

I followed the instruction from
https://pagure.io/fedora-infrastructure/issue/8455#comment-913675, but this is
my first time I actually doing anything in postfix configuration, so I'm not
sure if everything I did is correct.

The SMTP port on the machine seems to be open according to group_vars for the
mailman_stg.

Signed-off-by: Michal Konecny mkonecny@redhat.com

I think this looks fine, except... instead of roles/base/files/postfix/main.cf/main.cf.mailman, you should create / modify a roles/base/files/postfix/main.cf/main.cf.mailman01.stg.iad2.fedoraproject.org

otherwise it would also affect prod mailman01, which we don't need/want.

Oherwise, with the dns change (MX record) I think it should work. ;)

1 new commit added

  • [postfix] Move destinations to staging mailman configuration
10 months ago

I renamed the existing main.cf.mailman01.stg.phx2.fedoraproject.org to main.cf.mailman01.stg.iad2.fedoraproject.org and moved the destinations there.

I will check the DNS repo, because I wasn't able to find MX records there for mailman, but I will doublecheck.

Also will the mailman01.stg.vpn.fedoraproject.org work? I didn't saw any VPN entry in DNS repo for staging mailman.

I found some MX entries in DNS, but I don't see mailman figuring in any of those.

Oh yeah, sorry.
So:

  1. mailman01.vpn.stg.fedoraproject.org will of course not work. On smtp-mm-* you need to have that transport map send lists.stg.fedoraproject.org emails to bastion.vpn.fedoraproject.org.
    Then, you need to adjust the transport map on bastion to send lists.stg.fedoraproject.org emails to mailman01.stg.iad2.fedoraproject.org
    This is needed because mailman01.stg has no vpn (no staging host does). So, you have to send it via bastion with a 'hop'.

  2. In dns the thing you are looking for is lists:

lists IN MX 10 smtp-mm-osuosl01.fedoraproject.org.
lists IN MX 10 smtp-mm-cc-rdu01.fedoraproject.org.
lists IN MX 10 smtp-mm-ib01.fedoraproject.org.

You want to add 3 new lines below there like:
lists.stg IN MX 10 smtp-mm-osuosl01.fedoraproject.org.
lists.stg IN MX 10 smtp-mm-cc-rdu01.fedoraproject.org.
lists.stg IN MX 10 smtp-mm-ib01.fedoraproject.org.

2 new commits added

  • [postfix] Move destinations to staging mailman configuration
  • [postfix] Add mailman staging lists
10 months ago

rebased onto b52bfeb

10 months ago

2 new commits added

  • [postfix] Move destinations to staging mailman configuration
  • [postfix] Add mailman staging lists
10 months ago

I think everything should be in place now, let's take it for a ride :-)

Pull-Request has been merged by zlopez

10 months ago

So it's not working as it should:

  • I'm able to sent e-mail from the machine to mailing list @lists.stg.fedoraproject.org
  • I'm able to sent e-mail from the machine to somebody outside
  • I'm not able to sent e-mail to mailing list from web UI
  • I'm not able to sent e-mail to mailing list from my mail
  • E-mail sent to list is not forwarded to subscribers

It seems that the forwarding is working for the outgoing mail at least directly using mail command. I will try to figure out what is wrong here.

Found out that I had DEBUG still enabled for hyperkitty, but it just helped with being able to get mail sent to mailing list through web UI. It's still not delivered to subscribers.