Owen Townsend a écrit :
> subject: newbie config main.cf to send mail thru router to internet
> 
> Hope someone can help me with the postfix configuration file.
> 
> 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 do not want to receive any email from the internet to linux logged on
> users
> via postfix. (postfix mail between users logged on to the RH linux works
> OK)
> I use Thunderbird for my email from internet.
> 
> I installed postfix from my Red Hat release disc:
> mount /dev/cdrom /mnt
> rpm -ivh /mnt/Server/postfix-2.3.3-2.x86_64.rpm
> 
> I have uploaded my main.cf & /var/log/maillog files from 2 tests
> trying to email to o...@uvsoftware (my mail adrs at my ISP webfaction.com)
> See 4 files in postfix/ subdir on my website:
> 
> 1. www.uvsoftware.ca/postfix/main.cf        <-- my postfix config file
> 2. www.uvsoftware.ca/postfix/maillog1       <-- /var/log/maillog test1
> 3. www.uvsoftware.ca/postfix/maillog2       <-- /var/log/maillog test2
> 4. www.uvsoftware.ca/postfix/postfix_chk_ps <-- chklevels & ps for postfix
> 
> The only thing I changed in /etc/postfix/main.cf was relayhost about
> line 320
> relayhost=[74.55.86.74]     <-- smtp.webfaction.com
> 
> I am using a router to get to the internet & my ISP
> - router gateway adress to the internet is 192.168.0.1
> - my linux Red Hat computer is 192.168.0.4
> 
> For each test I did following:
> 1. service postfix stop
> 2. > /var/log/maillog
> 3. service postfix start
> 4. mail o...@uvsoftware    <-- my email adrs at my ISP webfaction.com
> 5. service postfix stop
> 6. capture 1st test log as maillog1 & 2nd as maillog2
> 
> In maillog1 I saw 'No route to host (port 25)'
> and thought my router firewall might be blocking,
> so I set my router to DMZ for my linux computer 192.168.0.4
> & ran test2 to create maillog2, but I still see 'No route to host (port
> 25)'
> - not sure what is causing this ?

may be a firewall is droping traffic?

- try pinging the relay host
- if that works, test with telnet:
telnet smtp.yourisp.example 25



> Note - I saw 'sendmail' msgs on some of the maillog lines (mostly 'postfix)
>     - to prove sendmail is NOT running and 'postfix' is running,
>       I captured results from 'ps' & 'chkconfig' into the 'postfix_chk_ps'
>       (ps/grep for sendmail & postfix, chkconfig --list sendmail & postfix)
> 
> Hope you can help me with the postfix configuration.
> 
> Thanks, Owen
> 

Reply via email to