Hello,
I changed the hostname of my VirtualMin (latest version, installed through install.sh) server using "hostname" linux command. I also noticed a "myhostname" line in "/etc/postfix/main.cf" and updated it accordingly.
From now on, I can't send email to addresses of any virtual servers.
The error I got :
user.domain_without_tld@sd-XXXX.dedibox.fr (expanded from user@domain.tld): mail for sd-XXXXX.dedibox.fr loops back to myself
(actually the "domain_without_tld" is the Unix username of the main account for the virtual server)
I checked for topics on the forum but everything "seems" fine regarding those topics.
Par of my "main.cf" file:
alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination = localhost, localhost.fr, localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all virtual_alias_maps = hash:/etc/postfix/virtual sender_bcc_maps = hash:/etc/postfix/bcc home_mailbox = Maildir/ smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
The line "mydestination" seems different from ones I found on some topics but I never changed this file and topics are a bit outdated.
My "/etc/postfix/virtual" file also contains lines such :
domain.tld domain.tld user@domain.tld user.domain_without_tld
I left the default option of "user.domain" for login.
Thanks in advance.
Tristan
Howdy,
Yeah you'll want to make sure that the "mydestination" line contains your hostname.
Also, make sure that the hostname is listed in /etc/hosts file.
-Eric
Andrey, thanks for your reply.
In the purpose of helping someone else having same trouble, you need to have BOTH your "hostname" and "localhost" in your "mydestination" line.
It's quite logical that the system should stop relay mails to these destinations and instead process them ;)