Hello, I still have a problem with mail. The Problem is: [email protected] cant receive mail on [email protected] ... [email protected]. The same is with [email protected] can receive mail on [email protected] @domain3.tld on all domains. $mydomain and $myhostname is not used on virtual site ################################################# my main.cf config: smtpd_banner = $myhostname ESMTP $mail_name (Debian Sarge) 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 #mydomain = post.domain.tld myhostname = post.domain.tld alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases #mydestination = localhost, domain.tld #mydestination = localhost.$mydomain, localhost virtual_alias_maps = hash:/etc/postfix/virtusertable mydestination = /etc/postfix/local-host-names relayhost = mynetworks = 127.0.0.0/8 mailbox_command = 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_use_tls = yes smtpd_use_tls = yes smtp_tls_note_starttls_offer = yes smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt 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 home_mailbox = Maildir/ Thanks for your help! MoMo
Please have a look in the file /etc/postfix/virtusertable if the relations between email address => username where correct and if not, post some examples here.
Falko no My mail system is working like(www.postfix.org documentation): ,,As simple as can be: shared domains, UNIX system accounts" It should be: ,,Postfix virtual ALIAS example: separate domains, UNIX system accounts"
Examples: vidas2@www.****roup.** vidas2 vidas@***roup.** vidas2 vidas2@***roup.** vidas2 buhalterija@www.***roup.** buhalterija2 buhalterija2@www.***roup.** buhalterija2 buhalterija@***roup.** buhalterija2 buhalterija2@***roup.** buhalterija2 ofisas@www.***ika.** ofisas ofisas@***ika.** ofisas jolanta@www.***ika.** jolanta5 jolanta5@www.***ika.** jolanta5 Thanks for help, shared domains is a little bit annoying thing
Ok, I will try to explain: I have 100 users in ISPconfig ( unix accounts ), some users belongs to domain1.tld, some to domain2.tld etc. But it doesn't matter which domain will be used, the existing user will get email from all domains. Expl. User1: web1_tom can receive email from [email protected] can receive email too from [email protected] ( doesn't not belong to that domain ) can receive emails on all domains... The other users can receive emails from all domains too. Then the users gets email(it's does'nt matter which domain used) in header is showing [email protected]. All headers shows the same domain1.tld, not domain2 or domain3 that was really used. Don't know that to do with this:/
And you are really sure that domain2 is not a co-domain of domain1 or vice versa? And domain1. Is not the "main" domain of your server, that is e.g. used in your postfix configuration or in /etc/hostname?
Ok, now I understand. You're using the username instead of an alias before the @ sign, e.g. [email protected]. Now what happens is this: an email for [email protected] arrives on the server; Postfix checks /etc/postfix/virtusertable for the recipient address. Because it cannot find [email protected] in that file (it lists only email aliases, not real users), it checks if there's a system user web1_tom. The same goes for [email protected]. That's why web1_tom receives all those emails. If you create an email alias like [email protected], this email alias is listed in /etc/postfix/virtusertable (e.g. Code: [email protected] web1_tom ). Now if you send an email to [email protected], the email arrives in web1_tom's mailbox. If you send an email to [email protected], Postfix cannot find it in /etc/postfix/virtusertable, and as there's no system user tom, the email gets bounced.
Oh no, now I understand the situation too... It's totally bad I disabled the prefix in ISPconfig, so all email usernames are the same as email part before@, except them the username is taken, when I used username2 instead. That you suggest to do to me? I have too many users to change the usernames, can I do something apart this? The best idea would be to user webXX prefix... but how to reverse time back now? Thanks, MoMo