Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configure sendmail on linux to forward to my ISP's smtp?

Status
Not open for further replies.

0ryan0

Programmer
Mar 12, 2006
1
US
I have a linux box upon which I run cron and Bugzilla. The cron output is currently e-mailed to the user on that box, which is fine.

The problem is the Bugzilla e-mails: I would like to forward Bugzilla notifications (bug created, bug resolved, etc) to my Yahoo mail and my partner's gmail. I tried sending a couple notifications, and I can see these mails in mailq, and get timeout errors in syslog

Connection timed out with gsmtp163.google.com
and
Connection timed out with mx4.mail.yahoo.com

I can't connect to port 25 on these mail servers, and I suspect that either 1) my ISP is blocking my access to other mail servers or 2) those mail servers are doing a check on my dynamic ip, and not getting a satisfactory reverse DNS lookup. Either of these is valid check to combat Spam, I suppose.

I used to run Bugzilla on a windows box, and used a sendmail wrapper or 'fake sendmail'. This sendmail program would just use my smtp username and password to send the mail from my ISP's mail server. Is there a way to configure linux sendmail to do this? Can I make it so that the local e-mails generated by cron are just delivered locally, without going to my ISP's smtp server?
 
Yes,

your cron emails would be sent to root unless another user is specified in your /etc/aliases file.

This messages would never need to get out of your server as they will be rerouted directly by procmail.

To send external emails out using your ISP SMTP server, you should find something similar to

define(`SMART_HOST', `smtp.yourISP.com')dnl

in your sendmail.mc file.

Edit that with your ISP domain and sendmail should use external smtp server to send emails.

Cheers

QatQat

Life is what happens when you are making other plans.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top