Hi postfix-users@postfix.org:

Note - This email is same as prior email (subject mail.cf help please)
- resending because I had not complete the list subscription process when I sent the 1st 1
 (saw a note that said such emails would be ignored)

----------------------- same as prior email (if you got it) ----------------------------
Can you help me with the postfix configuration file attached.

I want to  mail from Linux logged in user accounts to the internet
and more importantly from Korn shell scripts to the internet.
so scripts running by cron could email error situations to people at home.
I want to receive this from the internet on my Thunderbird on same or any system

linux comes with sendmail activated, but my book
- Red Hat Linux Networking & System Administration
- 3rd edition Terry Collings & Kurt Wall
strongly recommend 'postfix' (easier configuration)
so I switched as per pages 479 - 483
- mounted redhat system disc & used rpm to install postfix:
mount /dev/cdrom /mnt
rpm -ivh /mnt/Server/postfix-2.3.3-2.x86_64.rpm

I have attached the config file /etc/postfix/main.cf
The only thing I changed was relayhost about line 320

disable_dns_lookup = yes
relayhost = [192.168.0.1]   <-- my router gateway
relayhost=[74.55.86.74]     <-- smtp.webfaction.com

See page 482 & 483 of Collings & Wall
'running postfix behind firewall or gateway'
for 'internal network that does not have direct connection to internet' This
seems to describe my situation
-  using a router  whose gateway adress to the internet is 192.168.0.1

Page 483 gave the example of 192.168.0.1, so I tried that 1st then
smtp.webfaction.com [74.55.86.74] BUT neither works

For following tests I set my router to DMZ for my linux computer
I am mailing from user 'uvadm' to o...@uvsoftware.ca (my email at ISP webfaction.com)
I have attached results extracted from /var/log/maillog

test#1 - with relayhost = [192.168.0.1]
     - router DMZ set to 192.168.0.4 (my linux computer)
mail o...@uvsoftware.ca - see results in maillog5 attached test#2 - with relayhost = [74.55.86.74] (smtp.webfaction.com)
     - router DMZ set to 127.0.0.1 (my linux computer)
mail o...@uvsoftware.ca - see results in maillog6 attached I am using Thunderbird to receive emails from internet
I do not want to receive any email on the postfix system
mail between logged on users works OK

Note - I see 'sendmail' msgs in the logs, so to prove sendmail is NOT running
     and 'postfix' is running, I have attached sys_listall
   - which is ps/grep for sendmail & postifx
     and chkconfig --list for sendmail & postfix

Hope you can help me with the postfix configuration.

Thanks, Owen

Reply via email to