|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: The Anarcat (anarcat
anarcat.ath.cx)Date: Tue May 21 2002 - 23:22:13 CDT
Hi.
I have a postfix mailserver here which serves my internal networks.
I own anarcat.ath.cx, orangeseeds.net and orangeseeds.org.
Now, I have machines on this local network, www and mail. They're
available on the 3 domains, so I have: www.anarcat.ath.cx,
mail.anarcat.ath.cx, www.orangeseeds.net, and so on.
So my problem is: I can't just specify "orangeseeds.net" in
$mydestination to say that I wish to *keep* (ie. not send to my relay)
the mails in "*orangeseeds.net". ".orangeseeds.net" doesn't work either.
Mail for www.orangeseeds.net will be sent to the relay (and back, making
a nice loop) instead of being kept on the mail server, unless I
explicitly include www.orangeseeds.net in $mydestination.
I hereby include my postconf -n output, my access and mydestination
tables.
Note that also tried to use transports, resulting in a complete failure.
I'm using the postfix-1.1.7,1 on FreeBSD 4.5-stable, if that matters.
root
shall[/usr/local/etc/postfix]# postconf -n
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 2
mail_owner = postfix
mail_spool_directory = /var/mail/
mailbox_command = /usr/local/bin/procmail
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
masquerade_domains = $mydomain
mydestination = $myhostname, localhost.$mydomain $mydomain,
hash:/usr/local/etc/postfix/mydestinations
mynetworks = 192.168.0.0/8
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
parent_domain_matches_subdomains =
debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains
queue_directory = /var/spool/postfix
readme_directory = no
recipient_delimiter = +
relayhost = smtp1.sympatico.ca
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtpd_client_restrictions = hash:/usr/local/etc/postfix/access,
reject_unknown_client
# access and mydestinations are actually the same file
root
shall[/usr/local/etc/postfix]# ls -li mydestinations access
485365 -rw-r--r-- 2 root wheel 864 21 mai 18:50 access
485365 -rw-r--r-- 2 root wheel 864 21 mai 18:50 mydestinations
root
shall[/usr/local/etc/postfix]# cat access
.anarcat.ath.cx OK
anarcat.ath.cx OK
mail.anarcat.ath.cx OK
www.anarcat.ath.cx OK
.orangeseeds.net OK
orangeseeds.net OK
www.orangeseeds.net OK
mail.orangeseeds.net OK
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]