I am trying to setup a static maillist.  My first approach was to just include 
the addresses in a list in the virtual_alias file.  That works properly if the 
original message is being sent from someone authorized to send through my mail 
server.  However, the users of this list are all outside my domains and postfix 
rightlfully denies them relay privileges.  

I am supporting a few domains for mail.  All of them are virtual domains.  
There are a couple of addresses that have their mailboxes on my server.  Those 
are configured a virtual also.  Some of them have addresses in multiple 
domains.  

My second approach was to install and setup mailman.  I am using the 
instructions from /usr/local/share/doc/mailman/mailman-install.txt.  Obviously 
I am getting something wrong as postfix never seems to send an email to mailman.


From main.cf:
myhostname is not specified.
mydomain = sermon-archive.info
mydestination = localhost.$mydomain, localhost
virtual_alias_maps = hash:/usr/local/etc/postfix/vmail_alias, 
hash:/usr/local/etc/postfix/lafn_alias, hash:/usr/local/etc/postfix/vcsc_alias


The only test entry is in lafn_alias:
t...@lafn.org   test


Sending a message from the host master to t...@lafn.org gives the following log 
entries:
Feb  8 23:06:29 mail postfix-submission/smtpd[10647]: connect from 
master[10.0.1.250]
Feb  8 23:06:29 mail postfix-submission/smtpd[10647]: Anonymous TLS connection 
established from master[10.0.1.250]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 
(256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest 
SHA256
Feb  8 23:06:29 mail postfix-submission/smtpd[10647]: 4PC7Fd2yDbz2fjQ8: 
client=master[10.0.1.250], sasl_method=CRAM-MD5, sasl_username=doug
Feb  8 23:06:29 mail postsrsd[10652]: srs_forward: <doug@Master> rewritten as 
<SRS0=XoEA=6F=Master=d...@sermon-archive.info>
Feb  8 23:06:29 mail postsrsd[10652]: srs_forward: 
<SRS0=XoEA=6F=Master=d...@sermon-archive.info> not rewritten: Valid SRS address 
for <doug@Master>
Feb  8 23:06:29 mail postfix/cleanup[10651]: 4PC7Fd2yDbz2fjQ8: 
message-id=<63e49b75.97dc8a.5f43d...@master.sermon-archive.info>
Feb  8 23:06:29 mail clamd[1202]: fd[11]: Unable to determine the filepath 
given the file descriptor.
Feb  8 23:06:29 mail postfix/qmgr[10640]: 4PC7Fd2yDbz2fjQ8: 
from=<SRS0=XoEA=6F=Master=d...@sermon-archive.info>, size=612, nrcpt=1 (queue 
active)
Feb  8 23:06:29 mail postfix-submission/smtpd[10647]: disconnect from 
master[10.0.1.250] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 
commands=8
Feb  8 23:06:29 mail dovecot[10655]: 
lda(t...@mail.sermon-archive.info)[]<0fouIHWb5GOfKQAAZU03Dg>: 
msgid=<63e49b75.97dc8a.5f43d...@master.sermon-archive.info>: saved mail to INBOX
Feb  8 23:06:29 mail postfix/pipe[10654]: 4PC7Fd2yDbz2fjQ8: 
to=<t...@mail.sermon-archive.info>, orig_to=<t...@lafn.org>, relay=dovecot, 
delay=0.15, delays=0.1/0.02/0/0.03, dsn=2.0.0, status=sent (delivered via 
dovecot service)
Feb  8 23:06:29 mail postfix/qmgr[10640]: 4PC7Fd2yDbz2fjQ8: removed

The message is delivered to a mailbox on the host, not sent to mailman.


Here is the postconf -n output:
alias_maps = hash:/etc/aliases
bounce_queue_lifetime = 1d
command_directory = /usr/local/sbin
compatibility_level = 3.6
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/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
dovecot_destination_recipient_limit = 1
enable_long_queue_ids = yes
header_checks = pcre:/usr/local/etc/postfix/header_checks.pcre
home_mailbox = Maildir/
html_directory = /usr/local/share/doc/postfix
incoming_smtpd_restrictions = check_policy_service inet:127.0.0.1:10040, 
reject_invalid_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, 
reject_unknown_sender_domain, reject_unknown_recipient_domain, 
reject_unauth_pipelining, permit_mynetworks, check_recipient_access 
hash:/usr/local/etc/postfix/tempfail, reject_unauth_destination, 
reject_unlisted_recipient reject_rbl_client bl.spamcop.net, reject_rbl_client 
b.barracudacentral.org, reject_rbl_client zen.spamhaus.org, permit
inet_protocols = ipv4
local_recipient_maps = unix:passwd.byname $alias_maps
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_size_limit = 0
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
max_use = 5
message_size_limit = 1024000000
mydestination = localhost.$mydomain, localhost
mydomain = sermon-archive.info
mynetworks = 10.0.1.205, 10.0.1.230, 10.0.1.250, 10.0.1.200, 10.0.1.235, 
127.0.0.0/8
mynetworks_style = host
newaliases_path = /usr/local/bin/newaliases
postscreen_access_list = permit_mynetworks, 
cidr:/usr/local/etc/postfix/access.cidr
postscreen_greet_action = enforce
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
recipient_canonical_classes = envelope_recipient,header_recipient
recipient_canonical_maps = tcp:localhost:10002
relocated_maps = hash:/usr/local/etc/postfix/relocated
sample_directory = /usr/local/etc/postfix
sender_canonical_classes = envelope_sender
sender_canonical_maps = tcp:localhost:10001
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_destination_concurrency_limit = 2
smtp_destination_recipient_limit = 25
smtp_generic_maps = hash:/usr/local/etc/postfix/generic
smtpd_authorized_xclient_hosts = 10.0.1.0/24
smtpd_client_auth_rate_limit = 10
smtpd_client_connection_rate_limit = 10
smtpd_command_filter = pcre:/usr/local/etc/postfix/quote
smtpd_error_sleep_time = 10
smtpd_hard_error_limit = 10
smtpd_milters = unix:/var/run/clamav/clmilter.sock
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_soft_error_limit = 1
smtpd_tls_cert_file = /etc/ssl/certs/mail.pem
smtpd_tls_key_file = /etc/ssl/private/mail.key
smtpd_tls_loglevel = 1
smtpd_tls_security_level = may
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/usr/local/etc/postfix/vmail_domains
virtual_alias_maps = hash:/usr/local/etc/postfix/vmail_alias, 
hash:/usr/local/etc/postfix/lafn_alias, hash:/usr/local/etc/postfix/vcsc_alias
virtual_gid_maps = static:2222
virtual_mailbox_base = /var/mail/
virtual_mailbox_domains = hash:/usr/local/etc/postfix/local_domains
virtual_mailbox_limit = 1024000000
virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmail_mailbox
virtual_minimum_uid = 2222
virtual_transport = dovecot
virtual_uid_maps = static:2222




-- Doug

Reply via email to