Sitemap

Amicuk Programming Answers

Mailman + Postfix - User unknown

-0001-11-30   Views:0

Advertisement

Hi all, I'm having some trouble installing mailman (who doesn't?) right now. I tried everything. I followed EXACTLY what is said on our wiki (https://wiki.archlinux.org/index.php/Mailman) but still it's not working. Actually the only thing that is no

Hi all, I'm having some trouble installing mailman (who doesn't?) right now.
I tried everything. I followed EXACTLY what is said on our wiki (https://wiki.archlinux.org/index.php/Mailman) but still it's not working.
Actually the only thing that is not working is 'sending an email to the mailing list'. And this is quite important for a mailing list, I guess.
After spending hours trying, here is my current status:
I created a mailing list called pynochio, with [email protected] as the mailing list address.
Postfix reads my /var/lib/mailman/data/virtual-mailman file and applies the mapping. I'm sure about that because I changed the content of virtual-mailman (and then hashed it using postmap command) and the email postfix was trying to authenticate changed. (so there is no permission issue from this side)
But then postfix concludes that the user doesn't exist. Here are fresh logs from journalctl, just for you:
Mar 20 19:59:53 ks3100290 postfix/qmgr[26527]: 128382077C: from=<[email protected]>, size=1775, nrcpt=2 (queue active)
Mar 20 19:59:53 ks3100290 postfix/trivial-rewrite[26562]: warning: do not list domain too.gy in BOTH mydestination and virtual_mailbox_domains
Mar 20 19:59:53 ks3100290 postfix/trivial-rewrite[26562]: warning: do not list domain too.gy in BOTH mydestination and virtual_mailbox_domains
Mar 20 19:59:53 ks3100290 postfix/virtual[26567]: 128382077C: to=<[email protected]>, relay=virtual, delay=0.74, delays=0.65/0.03/0/0.07, dsn=5.1.1, status=bounced (unknown user: "[email protected]")
Mar 20 19:59:53 ks3100290 postfix/virtual[26567]: 128382077C: to=<[email protected]>, relay=virtual, delay=0.78, delays=0.65/0.03/0/0.1, dsn=2.0.0, status=sent (delivered to maildir)
This warning appears because in the tutorial we are said to put `too.gy` (our domain) in mydestination and because in my postfix database inside the `domain` table, `too.gy` is said to be virtual (transport=virtual). I don't know if it should be that way.
My problem is that I don't really know how postfix and mailman are supposed to communicate. Postfix is supposed to let mailman handle things since [email protected] is a list address but it doesn't.
I read some tutorials (on other distribs) and they are using lists.too.gy domain for their lists address (it seems easier) but it looks like there's a better way to do it and in the archlinux mailman documentation, we are not using such subdomain for our lists. So I want to do it the right, archlinux way.
There is `postfix_to_mailman.py` transport script thing but I read it's a bad practice...
Here is the output of `postconf -n` (which respects the mailman tutorial, once again):
alias_database = $alias_maps
alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/bin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_protocols = ipv4
local_recipient_maps = $alias_maps
local_transport = virtual
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = localhost, too.gy
mydomain = too.gy
myhostname = mail.too.gy
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman
sample_directory = /etc/postfix/sample
sendmail_path = /usr/bin/sendmail
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/private/server.crt
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_tls_loglevel = 1
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual, proxy:mysql:/etc/postfix/virtual_alias_maps.cf, hash:/var/lib/mailman/data/virtual-mailman
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/virtual_domains_maps.cf
virtual_mailbox_limit = 512000000
virtual_mailbox_maps = proxy:mysql:/etc/postfix/virtual_mailbox_maps.cf
virtual_minimum_uid = 5000
virtual_transport = virtual
virtual_uid_maps = static:5000
Any help appreciated. I'm on it since 10 hours, I don't want to kill myself.
EDIT: Forgot my `/etc/mailman/mm_cfg.py` >
# -*- python -*-
from Defaults import *
DEFAULT_URL_HOST = 'lists.too.gy'
DEFAULT_EMAIL_HOST = 'too.gy'
MTA = 'Postfix'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['too.gy']
DEFAULT_URL_PATTERN = 'http://%s/'
PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/archives/%(listname)s'
MAILMAN_SITE_LIST = 'mailman'
Last edited by toogy (2014-03-20 19:23:23)

The replay answer
Advertisement
AlanNYC wrote:
If I turn off local recipient checking, will I actually get my mail?
Yes, all email properly addressed should be delivered to you without problems.
The line only affects improperly addressed email, in this case allowing them to be accepted instead of rejected.
Since you are running Spamassassin and an IMAP server, I suggest also using the line
luser=[email protected]
which will send all improperly addressed mail to the address specified by "[email protected]". This is what I meant by "catch-all" address.
If you find postfix giving you problems after adding the lines, simply delete them or comment them out by adding a hash mark to the front of the line, e.g.
#localrecipientmaps =
Alternatively, you can simply make no changes and allow the log messages to accumulate. The messages mean that postfix is doing its job by rejecting email addressed to users that don't exist. The above steps allow you to receive mail addressed to [email protected], where "anything" is any string allowed in an email address.
I assume you're testing your changes using a separate email account, but in case you're not: sign up for a free email account with any of a number of free email services (Gmail, Yahoo) and test your postfix install as you make changes using the free account.

Go to See the other 7 answers

Mailman + Postfix - User unknown

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, I'm having some trouble installing mailman (who doesn't?) right now. I tried everything. I followed EXACTLY what is said on our wiki (https://wiki.archlinux.org/index.php/Mailman) but still it's not working. Actually the only thing that is no[More]

Gnu mailman Postfix Problem

Category:DefaultRelease time:-0001-11-30Views:130

I have a working configuration of Postfix, MySQL using virtual domains. I want to set up mailman. I have created a new domain called lists.wilkesley.org for the purpose, that will only handle mailman emails. I have installed mailman, but am having tr[More]

Mailman + Postfix + Virtual Domains

Category:DefaultRelease time:-0001-11-30Views:130

I'm going nuts trying to get this thing working... I spent the best part of yesterday getting Postfix and Courier working with Virtual Domains and a PostgreSQL backend. That's all working fine. Now I've spent about the last 5 - 6 hours trying to get[More]

Mailman / Postfix aliases problem?

Category:DefaultRelease time:-0001-11-30Views:130

Hello, all! I've got mailman running, finally, after many hours of fighting with it. It is now to the point where it will accept new subscribers through the listinfo page, send them their confirmation, and accept a confirmation action by the user on[More]

Fetchmail, Postfix user unknown in local recipient table

Category:DefaultRelease time:-0001-11-30Views:130

Hello all -- My fetchmail job has been failing to get mail to my mailbox with this error: SMTP error: 450 4.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table (I replace my actual user name with "usernam[More]

Setup mailinglist for virtual domain with postfix, mailman and Server Admin

Category:DefaultRelease time:-0001-11-30Views:130

Hello everybody! we have set up a working mailman/postfix configuration for mailing list purposes only on a Tiger Server. What we wanted to do now is to enable another mailinglist for a virtual domain which is hosted (the website) on another Tiger Se[More]

Help Deleting a OD Group Email That Won't Go Away

Category:DefaultRelease time:2015-10-11Views:130

I seem to have a ghost and I could use help finding it... There was a Open Directory Group that at some point an admin checked to enable the "Mailing list" for this group within Workgroup Manager (might have been back in 10.4). This group has si[More]

Postfix, mail loop back to myself

Category:DefaultRelease time:2015-10-11Views:130

Hello. I have tried to set up postfix and dovecot. However, I cant seem to figure out what is causing this error messages when trying to send emails to other local users. My servers hostname is aurora.tholden.no MX host is aurora.tholden.no I have tw[More]

Mailman virtual domain issue in 10.5.2

Category:DefaultRelease time:2015-10-11Views:130

Hi, We have upgraded to a 10.5.2 server and its working pretty smooth except for Mailman. Mailman works fine when mails are sent to [email protected] but not when they are sent to [email protected] And our mailman users were all[More]

Mail error 5.1.0 - Unknown address error 554-'5.7.1 user@rjh.school.nz : Recipient address rejected: Access denied'

Category:DefaultRelease time:2015-10-11Views:130

Cannot receive mail in.  Can send mail out. Result of postconf -n alias_maps = hash:/etc/aliases,hash:/var/mailman/data/aliases biff = no command_directory = /usr/sbin config_directory = /etc/postfix content_filter = smtp-amavis:[127.0.0.1]:10024 dae[More]

Mailman - trouble creating a second list at an existing virtual host

Category:DefaultRelease time:2015-10-11Views:130

I have a Virtual Alias error problem ... I have a Mailman list working (for months) ... *discuss at lists.MLDfamily.org*. I've just created a new list ... *discuss-adults at lists.MLDfamily.org*. The web interface works fine for the new list and it s[More]

Hot
Hi Everybody, I am doing this first time so need some help Q1. I need to Upgrade Target Agent from 10.2.0.3 to 10.2.0.4 manually and can't seem to find the right patch I need. I tried p3731593, but this seems to be installing much more than what I ne [More]
Im trying to drag and drop a email group from contacts to a new email message. But it will not let me in OS X Mavericks. Before I upgraded I could do this.I just posted this fix to another thread and thought it might be useful to post to all of the t [More]
Hi,    Actually i am downloading report out into Excel sheet using FM GUI_LOAD. But in this case in Excel sheet we are getting the date format  as *3/21/2008. But the requerment is the date format in Excel sheet should be display like 3/21/2008.So pl [More]
The device is visible in MAX, but I am unable to communicate with it, either by using the 'Communicate with Instrument' or the 'VISA Test Panel'. This seems slightly sporadic, as I have once or twice been able to connect and send a successful ID quer [More]
hi,      while configuring idoc to file ......... why we are not using sender communication channel or configuring sender idoc adapter .............. thanks in advance, jp.The main use of a sender adapter is to convert the input format into an XI sup [More]
Hello! I'm having some trouble using methods from one Form in another one. Here's the deal: This is a snippet from my 'main' form: public partial class PRINCIPAL : Form //some variables here Form2 Config = new Form2(); Form3 Cadastro = new Form3(); p [More]
I have my MBP hooked up to my LCD tv via VGA port I have found the best resolution is 1024x768 at 60hz however the tv is capable of 1366x768 but in displays it does not give this as an option it gives you alot of options even ones that a beyond the l [More]
I have a contact form and when I add the email address to send it to, [email protected] it won't allow me to.  I apprecaite these kind of domains are new, but I need to be able to send to my business email.  Can you help please?  Many thanksHi This n [More]
Hi, guys. I must create a SE38- report that simulate the selection of a query in sq02. How can I do for call the query in my own report? (I know all...user group, name, structure name) I can do other elaboration from data after the calling of the que [More]
i've tried to install the flash player plugin over firefox 15, but it is impossible. It doesn't matter if I make a manual installation or directly click on aditional plugins. when I reboot firefox, I keep receiving the message that i need to install [More]