Closed DrTrills closed 7 years ago
mailcow.conf seems to be missing.
That's very bad.
Am 23.06.2017 um 17:07 schrieb DrTrills notifications@github.com:
I solved many of my issues in #380 but now have new issues since updating.
I changed my DNS settings as per the new acme requirement. From A to CNAME Am able to send within my domain and outside. Unable to receive, I get this error in my postfix log:NOQUEUE: reject: RCPT from mail-wr0-f197.google.com[209.85.128.197]: 454 4.7.1 When I run a command like docker-compose restart nginx-mailcow It now shows: WARNING: The DBROOT variable is not set. Defaulting to a blank string. WARNING: The DBNAME variable is not set. Defaulting to a blank string. WARNING: The DBUSER variable is not set. Defaulting to a blank string. WARNING: The DBPASS variable is not set. Defaulting to a blank string. WARNING: The MAILCOW_HOSTNAME variable is not set. Defaulting to a blank string. WARNING: The TZ variable is not set. Defaulting to a blank string. WARNING: The ADDITIONAL_SAN variable is not set. Defaulting to a blank string. Here is my main.cf from postgres
biff = no append_dot_mydomain = no smtpd_tls_cert_file = /etc/ssl/mail/cert.pem smtpd_tls_key_file = /etc/ssl/mail/key.pem smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 [fd4d:6169:6c63:6f77::]/64 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = all bounce_queue_lifetime = 1d broken_sasl_auth_clients = yes disable_vrfy_command = yes maximal_backoff_time = 1800s maximal_queue_lifetime = 1d message_size_limit = 26214400 milter_default_action = accept milter_protocol = 6 minimal_backoff_time = 300s plaintext_reject_code = 550 postscreen_access_list = permit_mynetworks, cidr:/opt/postfix/conf/postscreen_access.cidr, tcp:127.0.0.1:10027 postscreen_bare_newline_enable = no postscreen_blacklist_action = drop postscreen_cache_cleanup_interval = 24h postscreen_cache_map = proxy:btree:$data_directory/postscreen_cache postscreen_dnsbl_action = enforce postscreen_dnsbl_sites = b.barracudacentral.org=127.0.0.27 dnsbl.inps.de=127.0.0.27 bl.mailspike.net=127.0.0.25 bl.mailspike.net=127.0.0.[10;11;12]4 dnsbl.sorbs.net=127.0.0.108 dnsbl.sorbs.net=127.0.0.56 dnsbl.sorbs.net=127.0.0.73 dnsbl.sorbs.net=127.0.0.82 dnsbl.sorbs.net=127.0.0.62 dnsbl.sorbs.net=127.0.0.92 zen.spamhaus.org=127.0.0.[10;11]8 zen.spamhaus.org=127.0.0.[4..7]6 zen.spamhaus.org=127.0.0.34 zen.spamhaus.org=127.0.0.23 hostkarma.junkemailfilter.com=127.0.0.23 hostkarma.junkemailfilter.com=127.0.0.41 hostkarma.junkemailfilter.com=127.0.1.21 wl.mailspike.net=127.0.0.[18;19;20]-2 hostkarma.junkemailfilter.com=127.0.0.1*-2 postscreen_dnsbl_threshold = 8 postscreen_dnsbl_ttl = 5m postscreen_greet_action = enforce postscreen_greet_banner = $smtpd_banner postscreen_greet_ttl = 2d postscreen_greet_wait = 3s postscreen_non_smtp_command_enable = no postscreen_pipelining_enable = no proxy_read_maps = proxy:mysql:/opt/postfix/conf/sql/mysql_virtual_sender_acl.cf, proxy:mysql:/opt/postfix/conf/sql/mysql_tls_enforce_out_policy.cf, proxy:mysql:/opt/postfix/conf/sql/mysql_tls_enforce_in_policy.cf, $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 $smtpd_sender_login_maps queue_run_delay = 300s relay_domains = proxy:mysql:/opt/postfix/conf/sql/mysql_virtual_relay_domain_maps.cf relay_recipient_maps = proxy:mysql:/opt/postfix/conf/sql/mysql_relay_recipient_maps.cf sender_dependent_default_transport_maps = proxy:mysql:/opt/postfix/conf/sql/mysql_tls_enforce_out_policy.cf smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt smtp_tls_cert_file = /etc/ssl/mail/cert.pem smtp_tls_key_file = /etc/ssl/mail/key.pem smtp_tls_loglevel = 1 smtp_dns_support_level = dnssec smtp_tls_security_level = dane smtpd_data_restrictions = reject_unauth_pipelining, permit smtpd_delay_reject = yes smtpd_error_sleep_time = 10s smtpd_hard_error_limit = ${stress?1}${stress:5} smtpd_helo_required = yes smtpd_proxy_timeout = 600s smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_recipient_access proxy:mysql:/opt/postfix/conf/sql/mysql_tls_enforce_in_policy.cf, reject_invalid_helo_hostname, reject_unknown_reverse_client_hostname, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_path = inet:dovecot:10001 smtpd_sasl_type = dovecot smtpd_sender_login_maps = proxy:mysql:/opt/postfix/conf/sql/mysql_virtual_sender_acl.cf smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch, permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated, reject_unknown_sender_domain smtpd_soft_error_limit = 3 smtpd_tls_auth_only = yes smtpd_tls_dh1024_param_file = /etc/ssl/mail/dhparams.pem smtpd_tls_eecdh_grade = strong smtpd_tls_exclude_ciphers = ECDHE-RSA-RC4-SHA, RC4, aNULL smtpd_tls_loglevel = 1 smtp_tls_mandatory_protocols = !SSLv2, !SSLv3 smtp_tls_protocols = !SSLv2, !SSLv3 lmtp_tls_mandatory_protocols = !SSLv2, !SSLv3 lmtp_tls_protocols = !SSLv2, !SSLv3 smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3 smtpd_tls_protocols = !SSLv2, !SSLv3 smtpd_tls_mandatory_ciphers = high smtpd_tls_security_level = may tls_ssl_options = NO_COMPRESSION tls_high_cipherlist = EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA
virtual_alias_maps = proxy:mysql:/opt/postfix/conf/sql/mysql_virtual_alias_maps.cf, proxy:mysql:/opt/postfix/conf/sql/mysql_virtual_spamalias_maps.cf, proxy:mysql:/opt/postfix/conf/sql/mysql_virtual_alias_domain_maps.cf, proxy:mysql:/opt/postfix/conf/sql/mysql_virtual_alias_domain_catchall_maps.cf
virtual_gid_maps = static:5000 virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = proxy:mysql:/opt/postfix/conf/sql/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/opt/postfix/conf/sql/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 104 virtual_transport = lmtp:inet:dovecot:24 virtual_uid_maps = static:5000 smtpd_milters = inet:rspamd:9900 non_smtpd_milters = inet:rspamd:9900 milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen} mydestination = localhost.localdomain, localhost
content_filter=zeyple
Prefere IPv4, useful for v4-only envs
smtp_address_preference = ipv4 Also before when I was setting up accounts I would see in the new inbox emails like "your calendar has been created" now those don't appear. Will keep working on it, if anyone else can give suggestions on the warning errors and why I am unable to send mail that would be great.
Thank you everyone, amazing project!
โ You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
I see it in
~/mailcow-dockerized# ls
data docker-compose.yml generate_config.sh LICENSE mailcow.conf mailcow.conf_backup mailcow-reset-admin.sh mailcow-setup-relayhost.sh README.md update.sh
edit:
cat mailcow.conf
# ------------------------------
# mailcow web ui configuration
# ------------------------------
# example.org is _not_ a valid hostname, use a fqdn here.
# Default admin user is "admin"
# Default password is "moohoo"
MAILCOW_HOSTNAME=mail.mydomain.com
# ------------------------------
# SQL database configuration
# ------------------------------
DBNAME=mailcow
DBUSER=mailcow
# Please use long, random alphanumeric strings (A-Za-z0-9)
DBPASS=<default removed>
DBROOT=<default removed>
# ------------------------------
# HTTP/S Bindings
# ------------------------------
# You should use HTTPS, but in case of SSL offloaded reverse proxies:
HTTP_PORT=80
HTTP_BIND=0.0.0.0
HTTPS_PORT=443
HTTPS_BIND=0.0.0.0
# ------------------------------
# Other bindings
# ------------------------------
# You should leave that alone
# Format: 11.22.33.44:25 or 0.0.0.0:465 etc.
# Do _not_ use IP:PORT in HTTPS_BIND or HTTPS_PORT
SMTP_PORT=25
SMTPS_PORT=465
SUBMISSION_PORT=587
IMAP_PORT=143
IMAPS_PORT=993
POP_PORT=110
POPS_PORT=995
SIEVE_PORT=4190
# Your timezone
TZ=US/Eastern
# Fixed project name
COMPOSE_PROJECT_NAME=mailcow-dockerized
# Additional SAN for the certificate
ADDITIONAL_SAN=
# To never run acme-mailcow for Let's Encrypt, set this to y
SKIP_LETS_ENCRYPT=n
The variables that are missing must be in there. Are they?
Also only run docker-compose from within the mailcow directory. Is .env missing? It should be a symlink to mailcow.conf
Am 23.06.2017 um 17:24 schrieb DrTrills notifications@github.com:
I see it in
~/mailcow-dockerized# ls data docker-compose.yml generate_config.sh LICENSE mailcow.conf mailcow.conf_backup mailcow-reset-admin.sh mailcow-setup-relayhost.sh README.md update.sh โ You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Yes, i've updated my comment with what is in the file. Seems you were emailed before I made the edit.
From what I can tell there is no .env file.
This is on a fresh install with debian 9 FYI
Now it is stuck on
Message from syslogd@debian at Jun 23 15:37:48 ...
kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1
Message from syslogd@debian at Jun 23 15:37:58 ...
kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1
Message from syslogd@debian at Jun 23 15:38:08 ...
kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1
Please let me know if I can help in any way. Thank you @andryyy
That is strange. Can you recreate the .env file by running ln -s mailcow.conf .env
?
I solved many of my issues in https://github.com/mailcow/mailcow-dockerized/issues/380 but now have new issues since updating.
NOQUEUE: reject: RCPT from mail-wr0-f197.google.com[209.85.128.197]: 454 4.7.1
docker-compose restart nginx-mailcow
It now shows:Here is my main.cf from postgres
Also before when I was setting up accounts I would see in the new inbox emails like "your calendar has been created" now those don't appear. Will keep working on it, if anyone else can give suggestions on the warning errors and why I am unable to send mail that would be great.
Thank you everyone, amazing project!