LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sendmail configuration (https://www.linuxquestions.org/questions/linux-software-2/sendmail-configuration-558944/)

k0nsole.c 06-03-2007 11:12 PM

sendmail configuration
 
Hi all

I'm trying to setup a disk space check scripts at one of the server(host1) in private zone, which will send email to me(eg: a@abc.com) through smtp server(eg: 10.58.216.5) in DMZ.
I have been trying to test sending mail with command line, but it was never been successful.

I have already setup smart host at sendmail.mc and already m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf and restarted the sendmail service.

whenever I send the test mail from command line, it always been queued.
Jun 4 11:57:13 p106pu02 sendmail[20640]: l543vDIY020640: from=root, size=40, class=0, nrcpts=1, msgid=<200706040357.l543vDIY020640@host1.xyz.com>, relay=root@localhost
Jun 4 11:57:13 p106pu02 sendmail[20640]: l543vDIY020640: to=a@abc.com, delay=00:00:00, mailer=esmtp, pri=30040, dsn=4.4.3, stat=queued

I have no DNS in private zone. DNS is only at DMZ.
I can try connecting port 25 of SMTP server from private zone by telneting 10.58.216.58 22, it is listening.

Pls guide me how can I achieve sending mail.
Thanks in deed.

ScooterB 06-04-2007 08:29 AM

I would think that you would need to set up the ability to relay mail in your DMZ SMTP mail server. If you go to /etc/access and look at the list you will see the configuration. It is basically just the IP and you would want to set the action to RELAY. That way, the DMZ mail server would know to accept SMTP and relay it from the internal mail server (if I understand your topology correctly). Take a look at that and repost.


All times are GMT -5. The time now is 06:34 AM.