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!

cannot send mails from internal lan user to external mailboxes

Status
Not open for further replies.

madouno

Programmer
Oct 31, 2002
9
EU
Hi all,

I searched thru FAQs and posts but I'm not be able to find the solution.

I have some workstation into a private lan that send automatic mails (from user@zip.zap.zop.com) to external mailboxes (me@yahoo.com). This lan is connected to external world thru firewall, router etc. and a mailserver.
Now with new antispam policy I cannot send any mail because my workstations are not visible to internet (the mailserver do a reverse DNS or somethig like). The postmaster said me to send mails with the field "Reply-to:" filled with a valid account to solve the problem.

My question is: How can I set this field automatically in the script that send mails? I must change something in sendmail.cf or any other configuration files?

If I do it manually:
telnet hostname 25
mail from:foo@foo.com
rcpt to: myextmail@yahoo.com
data
anyword bla bla bla...
.
quit
than is all OK and the mail is quickly delivered.

Thanks in advance
Domenico
 
I used the /etc/hosts file on my main server to allow all mail comming in from the firewalled domain.

ip.or.router.0 internalservers.domain.name

Worked for me.

You could also pipe the output to a local user with a .forward file set up and you can that there with the -r I think.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top