Article ID: 2855, created on Oct 29, 2007, last review on Apr 18, 2012

  • Applies to:
  • Pro Control Panel Linux


View Knowledge
Knowledge ID 2275
Product : Ensim Pro for Linux
Version : 3.7.0
Topic : Hotfix

Sendmail throws error if the mail server for the domain is an external server

When trying to relay mail from the server to a domain on the server which has hosted mail on some other mail server, the sendmail server throws up "User Unknown" error.



This problem has been noticed for sites with external email servers and sendmail disabled. The problem exists because of checks introduced in sendmail to give an outright "User Unknown" error message when trying to deliver to a non existing user on a domain. The previous behaviour was to first accept the mail then do a check locally and bounce back with a user does not exist mail if the user did not exist in the domain. The change was made to prevent unnecessary mails in the system which happened when spammers tried to guess usernames on sites using brute force.

The specific directives in the file are
Kdomainmap hash -o /etc/virtualhosting/mappings/domainmap.dband the following directives for each site
Ksite1_a hash -o -a -m /home/virtual/site1/fst/etc/aliases.db
Ksite1_u text -o -a -f -z: -v2 /home/virtual/site1/fst/etc/passwd

This however does not take into consideration the situation where the mail is hosted on another server.

To get past this, Edit the site and enable sendmail on it. Then make sure you have a catch-all account set for the domain. Edit the site to disable sendmail on the server. Make sure that the domain aliases file /home/virtual/ exists after you have disabled sendmail for the site.


Related Knowledge

Related Links
Last ModifiedUsageSatisfiedLast Used
6/16/2006 5:06:01 AM87 10/12/2007 4:01:53 AM

4cc899da08664637a8bc437308d3ddd7 3ccb419cf98083f3bb45808fba8dbc7c 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF