smeserver-qmail/root/etc/e-smith/templates/var/qmail/control/rcpthosts/10standard
Jean-Philippe Pialasse 2ac5875c1c * Thu Apr 25 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-7.sme
- move qmail template from qpsmtpd [SME: 9492]
  badrcptto,badmailfrom,rcpthosts are for qmail-smtpd, they were used by qpsmtpd
  as a direct remplacement, some file override them now, moving to qmail
  alternative would be to drop them as long as qpsmptd is used in front
2024-04-25 14:40:38 -04:00

15 lines
313 B
Plaintext

{
use esmith::DomainsDB;
my $ddb = esmith::DomainsDB->open_ro or die "Couldn't open DomainsDB\n";
my @rcpt_hosts = ( "$SystemName.$DomainName" );
foreach my $domain ( $ddb->get_all_by_prop( type => "domain" ) )
{
push @rcpt_hosts, $domain->key;
}
$OUT = join "\n", @rcpt_hosts;
}