Submitted by paranoikos on Wed, 02/18/2015 - 09:19
Hello, I am struggling 2 days to setup mail server with webmin/virtualmin.
I already can send mail but every incoming message bounces with error unknown user.
If anyone want to help please tell me what info you need.
Thank you in advance
Status:
Active
Comments
Submitted by paranoikos on Wed, 02/18/2015 - 09:22 Comment #1
/etc/postfix/main.cf
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/mailnamesmtpd_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 = 4hreadme_directory = no
TLS parameterssmtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt smtpd_tls_key_file = /etc/postfix/ssl/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 = host.mysite.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases
myorigin = /etc/mailnamemydestination = mysite.com, host.mysite.com, localhost.mysite.com, localhost
relayhost =mynetworks = 127.0.0.0/8 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all smtpd_sasl_local_domain = smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination smtpd_tls_auth_only = no smtp_tls_note_starttls_offer = yes smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom
sender_canonical_maps = hash:/usr/local/etc/postfix/canonical_sender virtual_alias_maps = hash:/usr/local/etc/postfix/virtualcanonical_maps = hash:/etc/postfix/canonical smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth virtual_transport = dovecot
Submitted by andreychek on Wed, 02/18/2015 - 10:03 Comment #2
Howdy -- it looks like there have been some changes made to your /etc/postfix/main.cf from the default that gets configured when Virtualmin is installed. One thing in particular is that it doesn't look like "virtual_alias_maps" points to a maps file.
It looks like you're using Virtualmin GPL there though, so the best place to get support would be using the Forums. We monitor the Forums, along with lots of wonderful folks in the community!
My suggestion would be to start a new Forum thread, and in that thread, let us know what the output of "postconf -n" is.
However, you could also just try setting the virtual_alias_maps line to the following to see if this resolves it:
virtual_alias_maps = hash:/etc/postfix/virtual
Submitted by paranoikos on Wed, 02/18/2015 - 10:31 Comment #3
Thx for the pointers I did as you suggested.