This is a discussion on Minor configuration problem within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> If anyone can help with this I'd appreciate it. I'm trying to set up a small intranet server, and ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| If anyone can help with this I'd appreciate it. I'm trying to set up a small intranet server, and want to send email out via PHP's mail command and sendmail. Now, in PINE and PHP, the system has set my sender email address to "linuxuser@webserver.ourcompany.com". This results in some mailservers dropping mail from our machine as "webserver.ourcompany.com" doesn't resolve. The exact error message is "(reason: 550 <linuxuser@webserver.ourcompany.com>: Sender address rejected: Domain not found)" I guess I've made a configuration boo-boo when I set the box up, here's what I have: hostname = webserver domainname = ourcompany.com dnsdomainname = ourcompany.com How do I configure my system so that the sender address is "linuxuser@ourcompany.com" rather than it inserting the hostname in the Sender: part? I'd prefer to do this at the system level rather than modifying the Sender: address in each and every application I use. (I've no idea if the error I'm making is a Slackware one, or a Sendmail one). Just a note: The intranet server is behind a firewall, our domain 'ourcompany.com' is valid, but the subdomain 'webserver.ourcompany.com' is not. That's simply what we've called the system on our internal network. Is it at this point I'm going wrong, and should I call it something else internally? Thanks in advance |
| |||
| On 2004-06-14, Less of your spam thanks <nospam@pipex.com> wrote: > I guess I've made a configuration boo-boo when I set the box up, here's > what I have: > > hostname = webserver > domainname = ourcompany.com > dnsdomainname = ourcompany.com > > How do I configure my system so that the sender address is > "linuxuser@ourcompany.com" rather than it inserting the hostname in the > Sender: part? I'd prefer to do this at the system level rather than > modifying the Sender: address in each and every application I use. > (I've no idea if the error I'm making is a Slackware one, or a Sendmail > one). In your sendmail.mc file put a masquerade line in: MASQUERADE_AS(`ourcompany.com')dnl After that re-generate your sendmail.cf file, put it in /etc/mail and restart sendmail (# /etc/rc.d/rc.sendmail restart). That will make whoever@whatever.ourcompany.com be changed to whoever@ourcompany.com. Hope this helps. -- Sincerely Greg Phillips greg at desynched dot net -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =----- |
| |||
| Greg Phillips wrote: > In your sendmail.mc file put a masquerade line in: > > MASQUERADE_AS(`ourcompany.com')dnl > > After that re-generate your sendmail.cf file, put it in /etc/mail and > restart sendmail (# /etc/rc.d/rc.sendmail restart). That will make > whoever@whatever.ourcompany.com be changed to whoever@ourcompany.com. Hi Greg, It sounds like that's what I need to do, I thought it might have something to do with the way I'd configured 'hostname', 'domainname' etc when I installed. I've done a 'slocate -u' to update my file list, and 'slocate sendmail.mc' but I don't appear to have this file, so I'm not sure how to rebuild my sendmail.conf. Is hunting down a copy of sendmail.mc my best bet then trying what you've suggested, or is it possible just to modify my sendmail.conf directly? Thanks, Adam. |
| |||
| Less of your spam thanks wrote: > Greg Phillips wrote: > >> In your sendmail.mc file put a masquerade line in: >> >> MASQUERADE_AS(`ourcompany.com')dnl >> >> After that re-generate your sendmail.cf file, put it in /etc/mail and >> restart sendmail (# /etc/rc.d/rc.sendmail restart). That will make >> whoever@whatever.ourcompany.com be changed to whoever@ourcompany.com. Okay, so I did this: 1. cd /usr/share/sendmail/cf/cf 2. cp sendmail-slackware.mc newsendmailconf.mc 3. [edited newsendmailconf.mc adding the MASQUERADE_AS line] 4. m4 newsendmailconf.mc > /etc/mail/sendmail.cf 5. [rebooted rather than restarting sendmail, just to be on the safe side Now my /etc/sendmail.cf has a new line in: DMourcompany.com However, I'm still having the same problem. Outbound mail is still stamped '@hostname.ourcompany.com' rather than just '@ourcompany.com'. Can anyone offer any advice on how to fix it? Cheers |
| |||
| Less of your spam thanks <nospam@pipex.com> wrote: > Now my /etc/sendmail.cf has a new line in: > DMourcompany.com > However, I'm still having the same problem. Outbound mail is still > stamped '@hostname.ourcompany.com' rather than just '@ourcompany.com'. > Can anyone offer any advice on how to fix it? Look in Sendmail-Address-Rewrite in the mini-Howto directory and it will tell you what you need to know. cordially, as always, rm |
| |||
| Realto Margarino wrote: > Look in Sendmail-Address-Rewrite in the mini-Howto directory and it > will tell you what you need to know. > > cordially, as always, > > rm Holy shit, after 8 hours it's working! Thanks for the response rm, I didn't have any luck with that unfortunately. I think that's to do with routing mail addressed locally to external addresses. However, after Greg's suggestion earlier I've modified my 'newsendmailconf.mc' I created earlier but added a few more lines: MASQUERADE_AS(`ourcompany.com')dnl MASQUERADE_DOMAIN(`ourcompany.com')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl Thanks for the pointer Greg |
| |||
| On 2004-06-14, Less of your spam thanks <nospam@pipex.com> wrote: > Greg Phillips wrote: > >> In your sendmail.mc file put a masquerade line in: >> >> MASQUERADE_AS(`ourcompany.com')dnl >> >> After that re-generate your sendmail.cf file, put it in /etc/mail and >> restart sendmail (# /etc/rc.d/rc.sendmail restart). That will make >> whoever@whatever.ourcompany.com be changed to whoever@ourcompany.com. > I've done a 'slocate -u' to update my file list, and 'slocate > sendmail.mc' but I don't appear to have this file, so I'm not sure how > to rebuild my sendmail.conf. Is hunting down a copy of sendmail.mc my > best bet then trying what you've suggested, or is it possible just to > modify my sendmail.conf directly? If your running slackware 9 and also the default sendmail config out of it then use: /usr/share/sendmail/cf/cf/sendmail-slackware.mc This is the default sendmail configuration for slackware. You can change to that directory and edit the file directly and then use make to generate your cf file. # cd /usr/share/sendmail/cf/cf # vim sendmail-slackware.mc # make sendmail-slackware.cf # cp sendmail-slackware.cf /etc/mail/sendmail.cf You can replace vim with your favorite editor. Since it seems your new to sendmail configuration I would like to point out the quoting above in the mc directive. That is a back-quote followed by a normal quote `'. It will make a difference Again, hope this helps. -- Sincerely Greg Phillips greg at desynched dot net -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =----- |
| |||
| Less of your spam thanks wrote: > If anyone can help with this I'd appreciate it. I'm trying to set up a > small intranet server, and want to send email out via PHP's mail command > and sendmail. > > Now, in PINE and PHP, the system has set my sender email address to > "linuxuser@webserver.ourcompany.com". This results in some mailservers > dropping mail from our machine as "webserver.ourcompany.com" doesn't > resolve. The exact error message is "(reason: 550 > <linuxuser@webserver.ourcompany.com>: Sender address rejected: Domain > not found)" > > I guess I've made a configuration boo-boo when I set the box up, here's > what I have: > > hostname = webserver > domainname = ourcompany.com > dnsdomainname = ourcompany.com > > How do I configure my system so that the sender address is > "linuxuser@ourcompany.com" rather than it inserting the hostname in the > Sender: part? I'd prefer to do this at the system level rather than > modifying the Sender: address in each and every application I use. (I've > no idea if the error I'm making is a Slackware one, or a Sendmail one). > > Just a note: The intranet server is behind a firewall, our domain > 'ourcompany.com' is valid, but the subdomain 'webserver.ourcompany.com' > is not. That's simply what we've called the system on our internal > network. Is it at this point I'm going wrong, and should I call it > something else internally? > > Thanks in advance Hello, I think the Return-Path of your e-mail is set to something@webserver.ourcompany.com. There are 2 ways to get rid of this problem: - Workaround: change your Return-Path of the e-mail you send. - Fix: configure sendmail to masquerade as ourcompany.com instead of webserver.ourcompany.com, especially if you are sending e-mail to the Internet. Regards, Tristan |
| ||||
| On 2004-06-15, Less of your spam thanks <nospam@pipex.com> wrote: > Thanks for the pointer Greg Heh, sure Seems having a slow dial-up with a news server that synchronizes only once an hour (if the last synchronization has completed) makes for poor response time. I'm glad you figured it out, and disregard the last reply (which obviously has arrived after this post). -- Sincerely Greg Phillips greg at desynched dot net -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =----- |