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
The inspector window will no longer open, either by clicking the icon or selecting "Show Inspector" from the view menu. I recently upgraded to Snow Leopard, but I can't be sure when this behavior started. Today I updated my iWork '09 to the late [More]
I can't sync my 2nd gen. touch with iTunes, when plugged in, iTunes doesn't recognise the iPod and the icon doesn't come up, however it does charge. I've been through all iTunes help and can't find anything. Any suggestions?Start here: iPhone, iPad, [More]
I have just bought a Sony DSC-RX100M3 camera and use it to shoot raw + jpeg.  I want to use the raw files in my Photoshop Elements 9, which has the Camera Raw plug-in version 6.5.0.216 installed. I have downloaded the Adobe DNG converter version 8.7. [More]
I updated to mountain lion and now mail cannot connect to my server.  It says check your user name and password are correct.  Well they are, and were.  Nothing has changed except the mac OS.  Has anyone else suffered this and knows a way around it?  [More]
Hi, Can anyone explain how to do data validation for the i/p fields in the WD View???Pleasegive an example with coding. Thanks!Hi, As Thomas pointed out in his reply that do the validation at WDDOBEFOREACTION method say you have a date to validate: D [More]
Yesterday I bought a Bebook One. Charged the batteries of the Bebook. Installed Adobe Digital Editions (ADE) on my (Windows 7) computer. Authorized my computer. Bought two e-books on http://www.bol.com and downloaded them with ADE. Moved the books (p [More]
Hi guys, initially I had trouble setting my office network printer. But the thread at http://discussions.apple.com/thread.jspa?threadID=2235451 helped a lot. Now I am still stuck as the office uses "user codes" for each of the staff but when I t [More]
Hi while we run the result analysis in KKAK we are getting "Cost element 910108052 (line ID ZTS) already used for line ID CSA. Need some help solving it. Thank you, NiviHi, Check T.code OKGA.If the cost element has been assigned twice to the line id [More]
After syncing iPad Air with iTunes the Info Page no longer shows up.  Doesn't matter if I sync via wi-fi or try another computer.  Without the Info Page how do I sync my calander/contacts/mail ??I think there's a big ol' discussion in the Mavericks f [More]
Excuse a newbie question: In the Encore User Guide it says that Encore can set the data rate automatically. I have a show that is 2 hours and 9 minutes long but when I try to burn it I am getting an error message saying that it won't fit on my 4.7 GB [More]