seeker22
09-18-2001, 10:40 PM
Ok I am setting up Postfix, And I got all my mail to relay VIA my ISPs SMTP server. But, one thing annoys me. All of my local mail (eg. atd, cron) sends thru my SMTP server also, so now I can't get my cron messages unless I'm connected to the internet. so is there any way I can have my local mail deliverd locally and my internet mail deliverd VIA my SMTP server? and if now can you just help me set it just to local mail?
here is my /etc/postfix/main.cf file
------------------------------------------------------------
# your ISP's SMTP server name or IP address goes here
relayhost = mail.pond.net
# this line disables spontaneous PPP connections
defer_transports = smtp
# this line disables DNS lookups for mail. As you are using a relay you really
# don't need DNS. If you use this you should use an IP address for $relayhost.
disable_dns_lookups = yes
# you will need all of the default stuff included as well
# defaults
queue_directory = /var/spool/postfix
program_directory = /usr/lib/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
default_privs = nobody
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
debugger_command = PATH=/usr/bin:/usr/X11R6/bin, xxgdb $daemon_directory/$process_name $process_id & sleep 5
# you shouldn't need any more in this next line for a stand alone host
mynetworks = 127.0.0.0/8
# host specific information
myhostname = progeny
mydomain = localdomain
myorigin = $mydomain
# where do we receive mail and who do we accept/receive mail for?
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain
# no uucp here
default_transport = smtp
# let's get the envelope right
masquerade_domains = pond.net
--------------------------------------------------
Thanks!
[ 18 September 2001: Message edited by: seeker22 ]
here is my /etc/postfix/main.cf file
------------------------------------------------------------
# your ISP's SMTP server name or IP address goes here
relayhost = mail.pond.net
# this line disables spontaneous PPP connections
defer_transports = smtp
# this line disables DNS lookups for mail. As you are using a relay you really
# don't need DNS. If you use this you should use an IP address for $relayhost.
disable_dns_lookups = yes
# you will need all of the default stuff included as well
# defaults
queue_directory = /var/spool/postfix
program_directory = /usr/lib/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
default_privs = nobody
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
debugger_command = PATH=/usr/bin:/usr/X11R6/bin, xxgdb $daemon_directory/$process_name $process_id & sleep 5
# you shouldn't need any more in this next line for a stand alone host
mynetworks = 127.0.0.0/8
# host specific information
myhostname = progeny
mydomain = localdomain
myorigin = $mydomain
# where do we receive mail and who do we accept/receive mail for?
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain
# no uucp here
default_transport = smtp
# let's get the envelope right
masquerade_domains = pond.net
--------------------------------------------------
Thanks!
[ 18 September 2001: Message edited by: seeker22 ]