hi everyone!
i start by saying that i browsed through the archives in here for the past three days, and re-read the mailman 3 docs several times, as well the postfix docs.
the thread closest to my problem is this one https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/F... ; i was not sure if it was good to re-open though.
i have a postfix + dovecot setup using the "separate domains and non-unix accounts".
problem:
postfix/smtpd[26356]: NOQUEUE: reject: RCPT from wout1-smtp.messagingengine.com[64.147.123.24]: 550 5.1.1 <list-name@domain.com>: Recipient address rejected: User unknown; from=<some@email.com> to=<list-name@domain.com> proto=ESMTP helo=<wout1-smtp.messagingengine.com>
postfix main.cf relevant portion for virtual users
# deliver mail for virtual users to Dovecot's LMTP socket
virtual_transport = lmtp:unix:private/dovecot-lmtp
# setup virtual domains and non-unix accounts
virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_base = /var/spool/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_uid_maps = static:1001
virtual_gid_maps = static:1001
virtual_alias_maps = hash:/etc/postfix/valias
postfix main.cf
mailman settings
transport_maps = regexp:/opt/mailman/var/data/postfix_lmtp
local_recipient_maps = regexp:/opt/mailman/var/data/postfix_lmtp
relay_domains = regexp:/opt/mailman/var/data/postfix_domains
question: i tried to add the alias_domain
to mailman using Mailman Core REST APIs because I read about https://mailman.readthedocs.io/en/latest/src/mailman/docs/mta.html#unusual-p... ; entering the mailman console and doing dump_json('http://localhost:9001/3.0/domains/example.com/lists')
was giving me error that dump_json
is not an available module.
is that the way to go? should I add a an alias_domain
to Mailman in order for it to output a postfix_vmap
when doing mailman aliases
? and then add it to postfix main.cf
like so
virtual_alias_maps = hash:/etc/postfix/valias, regexp:/opt/mailman/var/data//postfix_vmap
or do you suggest as a simple viable solution to create a new unix account and setup postfix to use local domains?
thanks and hopefully my confusion arose from reading all these threads will dissipate soon!
On 12/25/19 1:53 PM, work@andrefincato.info wrote:
question: i tried to add the
alias_domain
to mailman using Mailman Core REST APIs because I read about https://mailman.readthedocs.io/en/latest/src/mailman/docs/mta.html#unusual-p... ; entering the mailman console and doingdump_json('http://localhost:9001/3.0/domains/example.com/lists')
was giving me error thatdump_json
is not an available module.is that the way to go? should I add a an
alias_domain
to Mailman in order for it to output apostfix_vmap
when doingmailman aliases
? and then add it to postfixmain.cf
like sovirtual_alias_maps = hash:/etc/postfix/valias, regexp:/opt/mailman/var/data//postfix_vmap
I think the above should work for you. As far as dump_json
is not an
available module goes, the docs reference a lot of helper functions that
are described at
<https://mailman.readthedocs.io/en/latest/build/lib/mailman/docs/documentatio...>.
These need to be imported. I.e., for dump_json
from mailman.testing.documentation import dump_json
But, if you are just trying to set an alias_domain for the domain and you have Postorius, you can do that via Postorius.
If not Postorius you can use mailman shell
, For example
$ mailman shell
Welcome to the GNU Mailman shell
>>> dm = getUtility(IDomainManager)
>>> d = dm.get('example.com')
>>> d.alias_domain = 'x.example.com'
>>>
Then you need to do mailman aliases
to create/update the maps.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
work@andrefincato.info