Discussion:
majordomo + postifx + virtual domains + mysql...
(too old to reply)
p***@quantum-radio.net
2016-07-07 11:30:33 UTC
Permalink
Getting closer.

Now at least using the command line,

echo 'lists' | mail majordomo

I get this. It is actually looking to deliver it to the command line. =
But not yet...

Jul 7 08:48:21 zeus postfix/pickup[95164]: 2AF4137FD740: uid=3D501 =
from=3D<robert>
Jul 7 08:48:21 zeus postfix/cleanup[96311]: 2AF4137FD740: =
message-id=3D<***@zeus.quantum-radio.net <mailto:***@zeus.quantum-radio.net> =
<mailto:***@zeus.quantum-radio.net <mailto:***@zeus.quantum-radio.net>>>
Jul 7 08:48:21 zeus postfix/qmgr[95165]: 2AF4137FD740: =
from=3D<***@zeus.quantum-radio.net <mailto:***@zeus.quantum-radio.net> =
<mailto:***@zeus.quantum-radio.net <mailto:***@zeus.quantum-radio.net>>>, size=3D368, nrcpt=3D1 (queue =
active)
Jul 7 08:48:21 zeus postfix/sendmail[96315]: fatal: =
Majordomo-***@quantum-radio.net <mailto:Majordomo-***@quantum-radio.net> =
<mailto:Majordomo-***@quantum-radio.net <mailto:Majordomo-***@quantum-radio.net>>(5049): No recipient addresses =
found in message header
Jul 7 08:48:21 zeus postfix/local[96313]: 2AF4137FD740: =
to=3D<***@zeus.quantum-radio.net <mailto:***@zeus.quantum-radio.net> =
<mailto:***@zeus.quantum-radio.net <mailto:***@zeus.quantum-radio.net>>>, relay=3Dlocal, delay=3D0.47, =
delays=3D0.22/0.02/0/0.23, dsn=3D2.0.0, status=3Dsent (delivered to =
command: /usr/local/majordomo-1.94.5/wrapper majordomo)
Jul 7 08:48:21 zeus postfix/qmgr[95165]: 2AF4137FD740: removed



There is a FATAL in there. No recipient in message header=E2=80=A6 but =
there is - majordomo, because it actually tries to deliver it.

anyway, from the Mail app

I get this

The server response was: <***@quantum-radio.net <mailto:***@quantum-radio.net> =
<mailto:***@quantum-radio.net <mailto:***@quantum-radio.net>>>: Recipient address rejected: User =
unknown in virtual mailbox table

So, close, but no cigar ..




I don=E2=80=99t know if this is any help =E2=80=A6 but here it is.

postconf -n (postfix version 3.0.1)

alias_database =3D hash:/etc/aliases
alias_maps =3D hash:/etc/aliases
biff =3D no
broken_sasl_auth_clients =3D yes
command_directory =3D /usr/local/sbin
compatibility_level =3D 2
content_filter =3D smtp-amavis:[127.0.0.1]:10024
daemon_directory =3D /usr/local/libexec/postfix
data_directory =3D /var/lib/postfix
debug_peer_level =3D 2
debugger_command =3D PATH=3D/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin =
xxgdb $daemon_directory/$process_name $process_id & sleep 5
default_rbl_reply =3D $rbl_code Service unavailable; $rbl_class =
[$rbl_what] blocked using $rbl_domain${rbl_reason?; $rbl_reason} - see =
http://$rbl_domain <http://$rbl_domain> <http://$rbl_domain <http://$rbl_domain>>.
disable_vrfy_command =3D yes
dovecot_destination_recipient_limit =3D 1
home_mailbox =3D Mail/Dovecot/
html_directory =3D /usr/share/doc/postfix/html
inet_interfaces =3D all
inet_protocols =3D ipv4
lmtp_tls_ciphers =3D $smtpd_tls_ciphers
lmtp_tls_mandatory_ciphers =3D $smtpd_tls_mandatory_ciphers
mail_owner =3D _postfix
mailbox_size_limit =3D 0
mailq_path =3D /usr/local/bin/mailq
manpage_directory =3D /usr/share/man
maps_rbl_reject_code =3D 521
message_size_limit =3D 0
meta_directory =3D /usr/local/etc/postfix
milter_default_action =3D tempfail
mydestination =3D $myhostname
mydomain =3D quantum-radio.net <http://quantum-radio.net/> <http://quantum-radio.net/ <http://quantum-radio.net/>>
myhostname =3D zeus.quantum-radio.net <http://zeus.quantum-radio.net/> <http://zeus.quantum-radio.net/ <http://zeus.quantum-radio.net/>>
mynetworks_style =3D host
newaliases_path =3D /usr/local/bin/newaliases
non_smtpd_milters =3D inet:127.0.0.1:8891
postscreen_access_list =3D permit_mynetworks, =
cidr:/usr/local/etc/postfix/postscreen_access.cidr, =
cidr:/usr/local/etc/postfix/postscreen_spf_whitelist.cidr reject
postscreen_bare_newline_action =3D enforce
postscreen_bare_newline_enable =3D yes
postscreen_bare_newline_ttl =3D 30d
postscreen_blacklist_action =3D drop
postscreen_cache_cleanup_interval =3D 12h
postscreen_cache_map =3D btree:$data_directory/postscreen_cache
postscreen_cache_retention_time =3D 7d
postscreen_client_connection_count_limit =3D =
$smtpd_client_connection_count_limit
postscreen_command_count_limit =3D 20
postscreen_command_filter =3D
postscreen_command_time_limit =3D ${stress?10}${stress:300}s
postscreen_disable_vrfy_command =3D $disable_vrfy_command
postscreen_discard_ehlo_keyword_address_maps =3D =
$smtpd_discard_ehlo_keyword_address_maps
postscreen_discard_ehlo_keywords =3D $smtpd_discard_ehlo_keywords
postscreen_dnsbl_action =3D enforce
postscreen_dnsbl_reply_map =3D =
texthash:/usr/local/etc/postfix/dnsbl_reply
postscreen_dnsbl_sites =3D zen.spamhaus.org <http://zen.spamhaus.org/> =
<http://zen.spamhaus.org/ <http://zen.spamhaus.org/>>*3, bl.mailspike.net <http://bl.mailspike.net/> =
<http://bl.mailspike.net/ <http://bl.mailspike.net/>>*2, b.barracudacentral.org <http://b.barracudacentral.org/> =
<http://b.barracudacentral.org/ <http://b.barracudacentral.org/>>*2, bl.spameatingmonkey.net <http://bl.spameatingmonkey.net/> =
<http://bl.spameatingmonkey.net/ <http://bl.spameatingmonkey.net/>>, bl.spamcop.net <http://bl.spamcop.net/> =
<http://bl.spamcop.net/ <http://bl.spamcop.net/>>, dnsbl.sorbs.net <http://dnsbl.sorbs.net/> <http://dnsbl.sorbs.net/ <http://dnsbl.sorbs.net/>>, =
psbl.surriel.com <http://psbl.surriel.com/> <http://psbl.surriel.com/ <http://psbl.surriel.com/>>, swl.spamhaus.org <http://swl.spamhaus.org/> =
<http://swl.spamhaus.org/ <http://swl.spamhaus.org/>>*-4, list.dnswl.org <http://list.dnswl.org/> =
<http://list.dnswl.org/ <http://list.dnswl.org/>>=3D127.[0..255].[0..255].0*-2, list.dnswl.org <http://list.dnswl.org/> =
<http://list.dnswl.org/ <http://list.dnswl.org/>>=3D127.[0..255].[0..255].1*-3, list.dnswl.org <http://list.dnswl.org/> =
<http://list.dnswl.org/ <http://list.dnswl.org/>>=3D127.[0..255].[0..255].[2..255]*-4, =
wl.mailspike.net <http://wl.mailspike.net/> <http://wl.mailspike.net/ <http://wl.mailspike.net/>>=3D127.0.0.[17;18]*-1, =
wl.mailspike.net <http://wl.mailspike.net/> <http://wl.mailspike.net/ <http://wl.mailspike.net/>>=3D127.0.0.[19;20]*-2, =
ix.dnsbl.manitu.net <http://ix.dnsbl.manitu.net/> <http://ix.dnsbl.manitu.net/ <http://ix.dnsbl.manitu.net/>>, bl.blocklist.de <http://bl.blocklist.de/> =
<http://bl.blocklist.de/ <http://bl.blocklist.de/>>, list.dnswl.org <http://list.dnswl.org/> =
<http://list.dnswl.org/ <http://list.dnswl.org/>>=3D127.0.[0..255].0*-1, list.dnswl.org <http://list.dnswl.org/> =
<http://list.dnswl.org/ <http://list.dnswl.org/>>=3D127.0.[0..255].1*-2, list.dnswl.org <http://list.dnswl.org/> =
<http://list.dnswl.org/ <http://list.dnswl.org/>>=3D127.0.[0..255].[2..3]*-3, iadb.isipp.com <http://iadb.isipp.com/> =
<http://iadb.isipp.com/ <http://iadb.isipp.com/>>=3D127.0.[0..255].[0..255]*-2, iadb.isipp.com <http://iadb.isipp.com/> =
<http://iadb.isipp.com/ <http://iadb.isipp.com/>>=3D127.3.100.[6..200]*-2, wl.mailspike.net <http://wl.mailspike.net/> =
<http://wl.mailspike.net/ <http://wl.mailspike.net/>>=3D127.0.0.[17;18]*-1, wl.mailspike.net <http://wl.mailspike.net/> =
<http://wl.mailspike.net/ <http://wl.mailspike.net/>>=3D127.0.0.[19;20]*-2
postscreen_dnsbl_threshold =3D 3
postscreen_dnsbl_ttl =3D 1h
postscreen_dnsbl_whitelist_threshold =3D -4
postscreen_enforce_tls =3D $smtpd_enforce_tls
postscreen_expansion_filter =3D $smtpd_expansion_filter
postscreen_forbidden_commands =3D $smtpd_forbidden_commands
postscreen_greet_action =3D enforce
postscreen_greet_banner =3D Bienvenue et merci d'attendre qu'on vous =
assigne une place
postscreen_greet_ttl =3D 1d
postscreen_greet_wait =3D ${stress?2}${stress:6}s
postscreen_helo_required =3D $smtpd_helo_required
postscreen_non_smtp_command_action =3D drop
postscreen_non_smtp_command_enable =3D yes
postscreen_non_smtp_command_ttl =3D 30d
postscreen_pipelining_action =3D enforce
postscreen_pipelining_enable =3D yes
postscreen_pipelining_ttl =3D 30d
postscreen_post_queue_limit =3D $default_process_limit
postscreen_pre_queue_limit =3D $default_process_limit
postscreen_reject_footer =3D $smtpd_reject_footer
postscreen_tls_security_level =3D $smtpd_tls_security_level
postscreen_use_tls =3D $smtpd_use_tls
postscreen_watchdog_timeout =3D 10s
queue_directory =3D /var/spool/postfix
readme_directory =3D /usr/share/doc/postfix
recipient_delimiter =3D +
sample_directory =3D /usr/share/doc/postfix/examples
sendmail_path =3D /usr/local/sbin/sendmail
setgid_group =3D _postdrop
shlib_directory =3D /usr/local/lib/postfix
smtp_sasl_auth_enable =3D no
smtp_sasl_mechanism_filter =3D plain
smtp_sasl_password_maps =3D hash:/usr/local/etc/postfix/sasl_passwd
smtp_tls_ciphers =3D $smtpd_tls_ciphers
smtp_tls_mandatory_ciphers =3D $smtpd_tls_mandatory_ciphers
smtp_use_tls =3D yes
smtpd_client_restrictions =3D check_client_access =
hash:/usr/local/etc/postfix/access,reject_rbl_client bl.spamcop.net <http://bl.spamcop.net/> =
<http://bl.spamcop.net/ <http://bl.spamcop.net/>>,reject_rbl_client sbl-xbl.spamhaus.org <http://sbl-xbl.spamhaus.org/> =
<http://sbl-xbl.spamhaus.org/ <http://sbl-xbl.spamhaus.org/>>,reject_rbl_client cbl.abuseat.org <http://cbl.abuseat.org/> =
<http://cbl.abuseat.org/ <http://cbl.abuseat.org/>>,reject_rbl_client dnsbl.njabl.org <http://dnsbl.njabl.org/> =
<http://dnsbl.njabl.org/ <http://dnsbl.njabl.org/>>,reject_rbl_client zen.spamhaus.org <http://zen.spamhaus.org/> =
<http://zen.spamhaus.org/ <http://zen.spamhaus.org/>>
smtpd_delay_reject =3D yes
smtpd_error_sleep_time =3D 2s
smtpd_hard_error_limit =3D 2
smtpd_helo_required =3D yes
smtpd_helo_restrictions =3D permit_mynetworks, check_helo_access =
hash:/usr/local/etc/postfix/helo_access, reject_non_fqdn_hostname, =
reject_unknown_helo_hostname, reject_invalid_hostname, =
permit_sasl_authenticated, reject_invalid_helo_hostname, permit
smtpd_milters =3D inet:127.0.0.1:8891,inet:127.0.0.1:8893
smtpd_recipient_restrictions =3D reject_unauth_pipelining, =
reject_non_fqdn_recipient, reject_unknown_recipient_domain, =
check_sender_access hash:/usr/local/etc/postfix/access, =
check_client_access hash:/usr/local/etc/postfix/access, =
permit_mynetworks, permit_sasl_authenticated, check_policy_service =
unix:private/policy, reject_unauth_destination, reject_invalid_hostname, =
reject_unauth_pipelining, reject_non_fqdn_sender, =
reject_unknown_sender_domain, reject_non_fqdn_recipient, =
reject_unknown_recipient_domain, reject_rbl_client zen.spamhaus.org <http://zen.spamhaus.org/> =
<http://zen.spamhaus.org/ <http://zen.spamhaus.org/>>, reject_rbl_client sbl-xbl.spamhaus.org <http://sbl-xbl.spamhaus.org/> =
<http://sbl-xbl.spamhaus.org/ <http://sbl-xbl.spamhaus.org/>>, reject_rhsbl_reverse_client =
dbl.spamhaus.org <http://dbl.spamhaus.org/> <http://dbl.spamhaus.org/ <http://dbl.spamhaus.org/>>, reject_rhsbl_helo =
dbl.spamhaus.org <http://dbl.spamhaus.org/> <http://dbl.spamhaus.org/ <http://dbl.spamhaus.org/>>, reject_rhsbl_sender =
dbl.spamhaus.org <http://dbl.spamhaus.org/> <http://dbl.spamhaus.org/ <http://dbl.spamhaus.org/>>, check_recipient_access =
hash:/usr/local/etc/postfix/access
smtpd_relay_restrictions =3D permit_mynetworks, =
permit_sasl_authenticated, reject_unauth_destination, permit
smtpd_sasl_auth_enable =3D yes
smtpd_sasl_path =3D private/auth
smtpd_sasl_security_options =3D noanonymous
smtpd_sasl_type =3D dovecot
smtpd_sender_restrictions =3D check_sender_access =
hash:/usr/local/etc/postfix/blacklist, permit_sasl_authenticated, =
permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain, =
permit
smtpd_soft_error_limit =3D 1
smtpd_tls_CAfile =3D /private/etc/ssl/certs/sub.class1.server.ca.pem
smtpd_tls_cert_file =3D /private/etc/ssl/certs/2_quantum-radio.net.crt
smtpd_tls_ciphers =3D medium
smtpd_tls_exclude_ciphers =3D SSLv2, aNULL, ADH, eNULL
smtpd_tls_key_file =3D =
/private/etc/ssl/private/quantum-radio-private.key
smtpd_tls_loglevel =3D 2
smtpd_tls_mandatory_ciphers =3D high
smtpd_tls_security_level =3D may
smtpd_use_tls =3D yes
smtputf8_enable =3D no
soft_bounce =3D no
strict_rfc821_envelopes =3D yes
tls_preempt_cipherlist =3D yes
tls_random_source =3D dev:/dev/urandom
unknown_local_recipient_reject_code =3D 550
virtual_alias_maps =3D =
mysql:/usr/local/etc/postfix/mysql-virtual-alias-maps.cf
virtual_gid_maps =3D static:5000
virtual_mailbox_base =3D /var/mail/vhosts
virtual_mailbox_domains =3D =
mysql:/usr/local/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_limit =3D 0
virtual_mailbox_maps =3D =
mysql:/usr/local/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_minimum_uid =3D 100
virtual_transport =3D lmtp:unix:private/dovecot-lmtp
virtual_uid_maps =3D static:5000
/dev/rob0
2016-07-07 12:16:03 UTC
Permalink
Post by p***@quantum-radio.net
Getting closer.
But not understanding some basics.
Post by p***@quantum-radio.net
Now at least using the command line,
echo 'lists' | mail majordomo
See "man mail" to learn how to use your mailx(1) client. Or, better
yet, as below, just stick with a different client for now. "mail" is
about the worst possible choice for testing. (Funny, too, that it
seems to be every beginner's first choice as well!)

Also note that "majordomo" is not a complete email address. Use a
Post by p***@quantum-radio.net
I get this. It is actually looking to deliver it to the command line. =
But not yet...
Jul 7 08:48:21 zeus postfix/pickup[95164]: 2AF4137FD740: uid=3D501 =
Turn on "enable_long_queue_ids = yes"

Please turn OFF the stupid HTML markup in your mail client.
Post by p***@quantum-radio.net
There is a FATAL in there. No recipient in message header=E2=80=A6 but =
there is - majordomo, because it actually tries to deliver it.
anyway, from the Mail app
I get this
address rejected: User unknown in virtual mailbox table
This means the DOMAINPART (quantum-radio.net) was found in
virtual_mailbox_domains, but the full address was NOT found in
virtual_mailbox_maps.
Post by p***@quantum-radio.net
So, close, but no cigar ..
You need to use local(8) delivery to run a command, such as a
listserver.

There are two common ways to do that:
1. List the domain in mydestination
2. List the address in virtual_alias_maps pointing to an address
in mydestination

Another means of running a command would be with a pipe(8)
transport(5). I don't recommend that, but I mention it to be
complete. For a listserver, it's likely to be best to use a
subdomain for lists and have that in mydestination. I've never
configured the Major, but I am familiar with Mailman, and this
makes it very easy in Postfix.

Note that your problem at this point has *nothing* to do with
majordomo. Switching to Mailman would not change anything.
Post by p***@quantum-radio.net
I don=E2=80=99t know if this is any help =E2=80=A6 but here it is.
You should be able to tell us why you set those settings and what
they mean. And you probably need to remove quite a lot of them.
Post by p***@quantum-radio.net
postconf -n (postfix version 3.0.1)
myhostname =3D zeus.quantum-radio.net
mynetworks_style =3D host
myorigin is not set. That's what controls how Postfix deals with
unqualified localparts when used as email addresses.

It was hard to read and way too long, so I didn't go over your
"postconf -n" in detail.
--
http://rob0.nodns4.us/
Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
Norton Allen
2016-07-07 13:18:37 UTC
Permalink
Note that your problem at this point has*nothing* to do with
majordomo. Switching to Mailman would not change anything.
I second this. I run both Mailman and Majordomo (on separate servers)
and the Postfix configuration is almost identical.

Continue reading on narkive:
Loading...