From: Tom Warfield (no email)
Date: Mon May 16 2005 - 14:37:00 EDT
I created the transport file and also ran postmap on the file. Edited the
main.cf to add it as well. Plus I added the domain name to the domains
list. (at first i didnt add it to domains list but it kept getting rejected
so I clued in on that I needed it in there.)
Now though I am getting this error:
Recipient address rejected: User unknown in virtual mailbox table
Not sure on what to do with this one. I want all email going to that domain
to be sent to another ip address, even though it will come through this box.
Here is the transport: (I did make sure to run postmap
/etc/postfix/transport and then restarted postfix)
#
TRANSPORT(5)
southwestwireless.com smtp:[sw.tnt-ok.com]:25
Here is the main.cf: (I added the transport_map=/etc/postfix/transport)
# see /usr/share/postfix/main.cf.dist for a commented, fuller
# version of this file.
# Do not change these directory settings - they are critical to Postfix
# operation.
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
myhostname = mail.tnt-ok.com
transport_maps = hash:/etc/postfix/transport
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ns1.tnt-ok.com, ns1, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8, 10.1.7.0/24, 10.1.8.0/24, 10.1.9.0/24,
10.1.10.3/24, 10.2.1.0/24, 10.2.2.0/24, 10.2.3.0/24, 10.1.3.0/24,
10.1.4.0/24, 10.1.5.0/24, 10.1.6.0/24, 12.165.67.0/24, 198.203.196.8/24,
70.244.196.22/24, hash:/var/lib/pop-before-smtp/hosts
# What recipient addresses do we accept email for.
# (permit_mynetworks: permit all mail from $mynetworks)
# (permit_sasl_authenticates: trust SMTP-AUTH users)
smtpd_recipient_restrictions =
permit_mynetworks
reject_invalid_hostname
reject_non_fqdn_hostname
reject_non_fqdn_sender
reject_non_fqdn_recipient
reject_unknown_sender_domain
reject_unknown_recipient_domain
reject_unauth_pipelining
check_recipient_access hash:/etc/postfix/recipient_check
reject_unauth_destination
reject_rbl_client bl.spamcop.net
reject_rbl_client relays.ordb.org
reject_rbl_client relays.visi.com
reject_rbl_client ipwhos.rfc-ignorant.org
reject_rbl_client list.dsbl.org
reject_rbl_client opm.blitzed.org
reject_rbl_client sbl.spamhaus.org
reject_rbl_client cbl.abuseat.org
reject_rbl_client dnsbl.njabl.org
#reject_rbl_client dnsbl.sorbs.net
reject_rbl_client sbl.spamhaus.org
reject_rbl_client cbl.abuseat.org
reject_rbl_client argentina.blackholes.us
reject_rbl_client brazil.blackholes.us
reject_rbl_client china.blackholes.us
reject_rbl_client hongkong.blackholes.us
reject_rbl_client japan.blackholes.us
#reject_rbl_client korea.blackholes.us
reject_rbl_client malaysia.blackholes.us
reject_rbl_client mexico.blackholes.us
reject_rbl_client nigeria.blackholes.us
reject_rbl_client russia.blackholes.us
reject_rbl_client singaopore.blackholes.us
reject_rbl_client taiwan.blackholes.us
reject_rbl_client thailand.blackholes.us
reject_rbl_client turkey.blackholes.us
permit
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
# Where are virtual mailboxes locate on the disk
virtual_mailbox_base = /home/vmail
# Where in the above directory are the user's mailboxes.
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
# What virtual domains are there?
virtual_mailbox_domains =
mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
# What virtual email addresses are forwarded (=aliased) where?
virtual_alias_domains = $virtual_alias_maps
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
# What user/group ownerships are used when writing to the mailbox?
virtual_uid_maps = static:508
virtual_gid_maps = static:508
# SMTP AUTH (SASL)
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
# Be nice to brokenware like Outlook Express:
broken_sasl_auth_clients = yes
-----Original Message-----
From:
[mailto:]On Behalf Of Matt Fretwell
Sent: Monday, May 16, 2005 12:48 PM
To: postfix
Subject: Re: Forward domains email to IP?
Tom Warfield wrote:
> So the third box involved in this does not have an actual MX record, and
> nor do I want it to have one. All emai will bounce through the other
> two boxes and make their way to the box which only has an ip address
> associated with it. I suppose it would be easy enough to create a DNS
> entry pointing to it, but I do not want any MX records setup for the
> box.
transport_maps
Matt
|
|
|