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
Hello: I am unable to find out on the apple website any information about how to back up iTune purchases to a cd.  Could you please explain to me how it is done. Thank you. Dorothy King Calgary, AB CanadaWhile that method given in the support doc for [More]
I have been using Overdrive Media Console to download audio books for about 6 months now.....but I recently upgraded to the iPhone 4S and since then, I will download books and transfer them to my iPhone, says that transfer was completed successfully, [More]
Dear Freinds, I would like to know how to cancell invoices which are closed(posted for accounting document). I have around 5000 invoices which are suppose to be cancelled at one shot. thanks, sushil 93477 39539Don't think there is a "presto" but [More]
hi , I have 60+ sql scripts in a folder X..Is there any way to execute these scripts in one go..?? I am searching for a shortcut to execute these scripts using SQL PLUS Scripting (any possible way) .. Can anyone give some light to solve my issue?? Re [More]
Hi, I have set up the RA update correctly as shown in this screen shot http://wikisend.com/download/465092/ra_log.JPG however i am not sure why the system still says it cannot find the cost elements assignment. I ran kka1 with full log to see what co [More]
Hi Experts, I have a general question regarding posting after payroll. Our end user told me that we should do 3PR posting before we even create payroll posting documents. But they don't know why we need to keep doing with this order. Any reason from [More]
Hi guys, Is there any function module to change the mode in Planning board? I would like to call a custom screen to to chagne the mode since the strandard function cannot show enough info. Thanks.Thanks Bhanu for ur quick reply. Is that enough to cha [More]
I successfully downloaded Reader 10.1.3 to my Windows 7 64bit without issue.  However, when the pdf opens, I can view the document and scroll down the additional pages but cannot click page down arrow or enlarge or reduce image functionality.  I have [More]
I'm using adobe reader X and when I get results from an advanced search I am scrolling down the search results with the arrow keys, but the document will not update. I know this will work. Can anybody please help?I am also having this problem.  Previ [More]
I try to sync with iTunes 7.0.1 and when I click sync music there is a pop up that says If i sync music onto my ipod mini then it will delete and or replace all of my music on my ipod what should I do?HELP!!!!! Dell XPS M140   Windows XP   Dell XPS M [More]