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 All, I have to upload a document in Portal.I tried the following methods but was unsuccessful. 1) I selected a new iview and selected URL iview.I pasted the path of the file(location of file where it is saved) in the URL field of URL iView Editor. [More]
Hi All, DB:11G OS:RHEL I have to schedule a job in oracle DB where in which i have to call a procedure which is used to transfer some selected tables from one schema to another. I want to know if we can do the same without using a cron job and how to [More]
Hi Guru's. I want to  fetch the Vendor number from the Ship Cost document and want to populate on the SD billing document and then corresponding acctg document. Is there any way or user exits available? Thanks in advance for your help.Hi For your req [More]
I'm thinking of making a change to an existing database. We currently have check constraints on table columns enforcing business rules for those columns. (e.g. "ADDRESS1 has to contain a number".) ADDRESS1 shows up all over the place in our tabl [More]
How can I create address labels for printing using Palm Desktop by Access Version 6.2.2? I recently changed to Palm Desktop by Access Version 6.2.2 and can no longer print mailing labels as I could using an older Palm Desktop version (4.1.? I believe [More]
Is Flex notified by the browser when the browser is closed (or browser tab)? I need to be able to save any unsaved data in the application before the browser closes. Thanks in advanceThanks for your reply. I found a good example that I followed and g [More]
I'll just list them · Alt-d doesn't work in xterm as a shortcut to deleting consecutive non-whitespace characters; is there any way of making it work? Ctrl-d still works for individual characters... · I'm no longer able to switch to TTYs with Ctrl-Al [More]
We want to increase sga 8gb, knowing that we have the physical size of the ram 24 to go. we followed the configuration steps as the oracle note 225349.1, we modified the boot.ini file by adding the / PAE, the AWE is configured to 2147483648, when sta [More]
Is there a formal SDK class this forum would recommend? Focus is on Cloud for Customer.Hi Michael, yes, there is: WDC4C3 - Cloud for Customer-Development Training | SAP Training and Certification Shop Cheers, JensRead other 2 answers [More]
Hi all. I'm having a problem with my Macbook. Its struggling to play Hi def videos either 720p or 1080p. This was never the case until very recently.The video are jerky and slow. I am aware that the majority of the issue is from the processor but lik [More]