Re: [Mailman-Users] access scrubbed attachments of private lists without password?

2011-07-22 Thread Steffen Kaiser

On Thu, 21 Jul 2011, Mark Sapiro wrote:


On 7/20/2011 1:53 AM, Steffen Kaiser wrote:


is it possible to access scrubbed attachments of private lists without a
password?



No. Scrubbed attachments are stored in the list's archive file hierarchy
and have to be accessed as anything else in the list's archives. If the
archive is private, this requires a password.

Also, in general, it seems to me that if a list's archives are private,
it would not be a good idea to make attachments to list posts publicly
accessible.


That depends on the view :-)

MIMEDefang (www.mimedefang.org) has a feature to replace attachments with 
links. The URLs are using a SHA1-based hash of the content of the file. 
The idea is: if someone gained access to the message, s/he would have 
access to the attachment, if it had not been removed. The URL is obscured 
in such a way, that one would need the content of the file to guess the 
URL to it. No need to protect the attachment any further.


Or one could think of the SHA1-based URL as the password to the file.

Such URL could look like:
https://example.com/mailman/private/list/attachments/20110719/5d9da8c3/sha1hash.pdf

or one uses: sha1hash/sanitisedFilename.pdf

or something like that.

Of course, I do not know how the Mailman password stuff works in detail, 
so one could place appropriate links into https://host/pipermail/list/ or 
yet another base path.


Kind regards,

--
Steffen Kaiser
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Problem with Mailman+Postfix

2011-07-22 Thread gigahertz

Hi there.
I´m using Postfix + Dovevot + Mailman on Debian Lenny with ISPConfig3 Setup.
I´ve installed Mailman seperate from ISPConfig via apt-get, 
administrating lists works fine but there is one problem: Postfix does 
not accept incoming mails to the mailing list.


mail.info:
Jul 22 10:53:13 atom-29 postfix/smtpd[12620]: NOQUEUE: reject: RCPT from 
mailout-de.gmx.net[213.165.64.22]: 550 5.1.1 t...@xyz.net: Recipient 
address rejected: User unknown in virtual mailbox table; 
from=a...@gmx.de to=t...@xyz.net proto=SMTP helo=mailout-de.gmx.net


main.cf of Postfix:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate delayed mail warnings
#delay_warning_time = 4h

readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = atom-29.ip-projects.de
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
myorigin = /etc/mailname
mydestination = atom-29.ip-projects.de, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains =
virtual_alias_maps = 
proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, 
mysql:/etc/postfix/mysql-virtual_email2email.cf

virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /var/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, 
permit_sasl_authenticated, check_recipient_access 
mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination

smtpd_tls_security_level = may
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
relay_recipient_maps = 
mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
proxy_read_maps = $local_recipient_maps $mydestination 
$virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps 
$virtual_mailbox_domains $relay_recipient_maps $relay_domains 
$canonical_maps $sender_canonical_maps $recipient_canonical_maps 
$relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
smtpd_sender_restrictions = check_sender_access 
mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_client_restrictions = check_client_access 
mysql:/etc/postfix/mysql-virtual_client.cf

maildrop_destination_concurrency_limit = 1
maildrop_destination_recipient_limit = 1
virtual_transport = dovecot
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
nested_header_checks = regexp:/etc/postfix/nested_header_checks
body_checks = regexp:/etc/postfix/body_checks
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
message_size_limit = 0
#Mailman
owner_request_special = no

What am I doing wrong?

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Problem with Mailman+Postfix

2011-07-22 Thread Mark Sapiro
On 7/22/2011 4:32 AM, gigahe...@fettabernett.de wrote:
 Hi there.
 I´m using Postfix + Dovevot + Mailman on Debian Lenny with ISPConfig3
 Setup.
 I´ve installed Mailman seperate from ISPConfig via apt-get,
 administrating lists works fine but there is one problem: Postfix does
 not accept incoming mails to the mailing list.
 
 mail.info:
 Jul 22 10:53:13 atom-29 postfix/smtpd[12620]: NOQUEUE: reject: RCPT from
 mailout-de.gmx.net[213.165.64.22]: 550 5.1.1 t...@xyz.net: Recipient
 address rejected: User unknown in virtual mailbox table;
 from=a...@gmx.de to=t...@xyz.net proto=SMTP helo=mailout-de.gmx.net
 
 main.cf of Postfix:
[...]
 alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
 alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
[...]
 virtual_alias_domains =
 virtual_alias_maps =
 proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf,
 mysql:/etc/postfix/mysql-virtual_email2email.cf
 virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
 virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
[...]
 
 What am I doing wrong?


'postconf -n' is generally more useful than main.cf.

It appears the problem is that your list domain is a virtual mailbox
domain, but you have no virtual mapping for the list addresses.

If that is indeed the problem, you need to add
hash:/var/lib/mailman/data/virtual-mailman to virtual_alias_maps in
main.cf. You also need to put your list domaian (xyz.net) in
POSTFIX_STYLE_VIRTUAL_DOMAINS in mm_cfg.py as in

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['xyz.net']

and run Mailman's bin/genaliases to generate virtual-mailman.

Also, you should not have hash:/var/lib/mailman/data/aliases because it
will cause Postfix's newaliases command to rebuild
hash:/var/lib/mailman/data/aliases.db which may adversely affect the
owner:group of this file.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org