On Mon, Feb 05, 2007 at 02:07:02PM -0200, Giancarlo Razzolini wrote: > Hi all, > > I'm having some trouble with sendmail. My problem is the following: i > do have many firewalls in many places and would like to receive all the > daily/weekly/monthly reports in my e-mail. All the machines have their > fqdn hostnames as frw.domain.com. And most of then have dynamic ip. When > i issue a mail command from any of then and try to send an e-mail to me, > my MTA reject the message because of the sender domain, which sendmail > send as frw.domain.com. I tried changing the SMART_HOST and the > DOMAIN_NAME directives in sendmail, to relay the e-mail to my MTA and to > send another domain, not the frw.domain.com, respectively. But neither > of them worked. I would like to have another solution than configuring > my MTA to accept mail from those domains. I would like to have the > domain rewrited to domain.com not frw.domain.com. Any ideias? > > My regards, > -- > Giancarlo Razzolini > Linux User 172199 > Red Hat Certified Engineer no:804006389722501 > Moleque Sem Conteudo Numero #002 > Slackware Current > OpenBSD Stable > Ubuntu 6.10 Edgy Eft > Snike Tecnologia em Informatica > 4386 2A6F FFD4 4D5F 5842 6EA0 7ABE BBAB 9C0E 6B85
It's been awhile since I've configured sendmail on OpenBSD, so I'm hoping I didn't botch the procedure too badly. Read the "Masquerading and Relaying" section from /usr/share/sendmail/README, You'll most likely want to use the following features on your external systems: FEATURE(`MASQUERADE_AS', `domain.com') FEATURE(`MASQUERADE_ENVELOPE') ...and this on your main server: FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access_map') I see two problems with your desired configuration. All of the messages from your remote systems are going to appear to be from senders like [EMAIL PROTECTED], and you're not going to be able to tell which machine really sent the message unless you read the headers. Secondly, since some of your machines are on dynamic IP addresses you're going to have to keep updating the access map. You could just not use it, but then you can be spammed from remote systems that claim to be sending mail from domain.com. -Damian