Re: Need help with a strange mail/domain problem!
On Mon, 7 Jul 2003, David Landgren wrote: > Thomas Beutler wrote: > > > Hi everyone! > > > > I'm a total stranger to the Unix world... too long have I dwelled in the > > Windows area, and now I'm searching > > for new horizons and worlds to explore... the Unix world. I looked around > > and found FreeBSD interesting > > enough to install... and here I am with a strange problem: > > > > I installed FreeBSD 5.0-Release and got the system running. So far - so > > good. > > Second task: Install bind and get the DNS running. So far - so good - at > > least I think so. > > > > Third task was to get my email work... and now the problems begins. > > > > I own the domain beutler.se, and my computers name is visthusboden. > > The server accepts incoming mail all right - no problems there... BUT... > > ...whatever I do, all outgoing mail get the address > > [EMAIL PROTECTED] instead of [EMAIL PROTECTED] > > > > What am I doing wrong? > > You didn't visit http://www.postfix.org/ :) That aside, you need to tell your mailer what domain to slap on the end of unqualified mailing addresses. I think you want to add these two lines to your sendmail.mc then regerate the .cf: MASQUERADE_AS(`beutler.se') FEATURE(`masquerade_envelope') ... but I'm sure sendmail gurus will step in to correct me. It's been a while, here, too: I tend to use exim these days, mainly for the reason given by David (that the configuration files are somewhat more straightforward). -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Theoremhood is positively decidable. It just takes time at least exponential in the length of the proof. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Need help with a strange mail/domain problem!
Thomas Beutler wrote: Hi everyone! I'm a total stranger to the Unix world... too long have I dwelled in the Windows area, and now I'm searching for new horizons and worlds to explore... the Unix world. I looked around and found FreeBSD interesting enough to install... and here I am with a strange problem: I installed FreeBSD 5.0-Release and got the system running. So far - so good. Second task: Install bind and get the DNS running. So far - so good - at least I think so. Third task was to get my email work... and now the problems begins. I own the domain beutler.se, and my computers name is visthusboden. The server accepts incoming mail all right - no problems there... BUT... ...whatever I do, all outgoing mail get the address [EMAIL PROTECTED] instead of [EMAIL PROTECTED] What am I doing wrong? You didn't visit http://www.postfix.org/ :) Without wishing to start a flame war, if you are just starting out with smtp on Unix, I would recommend skipping Sendmail using Postfix instead. Having used both (sendmail for years, postfix for months), I wouldn't want to go back to Sendmail even if you paid me. Postfix is a joy to use. I don't think anyone will say that about sendmail. And the configuration files are human-readable. David ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Need help with a strange mail/domain problem!
> On Sat, Jul 05, 2003 at 01:56:25PM +0200, Thomas Beutler wrote: > >> The server accepts incoming mail all right - no problems there... BUT... >> ...whatever I do, all outgoing mail get the address >> [EMAIL PROTECTED] instead of [EMAIL PROTECTED] > >You need to build yourself a customised sendmail configuration, which >you can do in the following way. > > % cd /etc/mail > # make > > (# here implies you'll need root privileges to do this command) This > will create a file named after your host (referred to as > `hostname`.mc) which can be processed through the macro processor > m4(1) in order to generate a sendmail configuration file. > > Now, edit the `hostname`.mc file and add lines according to the > following patch: > > --- visthusboden.beutler.se.mc.old Sat Jul 5 13:22:31 2003 > +++ visthusboden.beutler.se.mc Sat Jul 5 13:25:09 2003 > @@ -54,6 +54,12 @@ > FEATURE(mailertable, `hash -o /etc/mail/mailertable') > FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') > > +FEATURE(allmasquerade)dnl > +FEATURE(masquerade_envelope)dnl > +FEATURE(masquerade_entire_domain)dnl > +MASQUERADE_AS(`beutler.se')dnl > +MASQUERADE_DOMAIN(`beutler.se')dnl > + > dnl Uncomment to allow relaying based on your MX records. > dnl NOTE: This can allow sites to use your server as a backup MX without > dnl your permission. > > Now, process the `hostname`.mc file into a sendmail configuration > file, install it as /etc/mail/sendmail.cf and restart sendmail so it > picks up the changes. > ># make all ># make install ># make restart_mta > > Et voila. > > Read the file /usr/share/sendmail/cf/README for details about how to > generate a sendmail configuration. > > Cheers, > > Matthew Thank you *very* much Matthew (and thanks also to Stacey, Jamie and Bill) !!! :-) Though the FreeBSD manual is quite good as manulas go, this particular part about masquerading I found a little bit confusing. But Matthew's explanation made it all clear to me. Again, thanks! Kind Regards /Thomas ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Need help with a strange mail/domain problem!
On Sat, Jul 05, 2003 at 01:43:50PM +0100, Jamie Jones wrote: > In bish.lists.freebsd.questions, you wrote: > > Sendmail is a big, complex program ... I'm sure if you had the time, > > you could make it wash dishes for you. > > Now *that's* the URL i want! Not sure about washing dishes, but sendmail will certainly drink beer for you... http://99-bottles-of-beer.ls-la.net/s.html#Sendmail Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: Need help with a strange mail/domain problem!
In bish.lists.freebsd.questions, you wrote: > Sendmail is a big, complex program ... I'm sure if you had the time, > you could make it wash dishes for you. Now *that's* the URL i want! > Considering the fact that you're using FreeBSD, I recommend the one > specifically written for FreeBSD in the Handbook. I found this page > particularly useful: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-dialup.html Good point ... *blush* Cheers, Jamie ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Need help with a strange mail/domain problem!
Sendmail is a big, complex program ... I'm sure if you had the time, you could make it wash dishes for you. There are a gazillion howtos and explanations for configuring sendmail all across the internet. Considering the fact that you're using FreeBSD, I recommend the one specifically written for FreeBSD in the Handbook. I found this page particularly useful: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-dialup.html Jamie Jones wrote: In bish.lists.freebsd.questions, you wrote: Third task was to get my email work... and now the problems begins. I own the domain beutler.se, and my computers name is visthusboden. The server accepts incoming mail all right - no problems there... BUT... ...whatever I do, all outgoing mail get the address [EMAIL PROTECTED] instead of [EMAIL PROTECTED] What am I doing wrong? I've checked and tripple-checked every file in /etc/namedb/ and everything looks fine (no missing dots or some simple problem like that) and I've really read this through in the FreeBSD manual... and still... ??? It's not a DNS issue, it's "sendmail". What it's currently doing is correct - by default, it uses your fully qualified hostname for the Sender address -- it doesn't know that "[EMAIL PROTECTED]" will work also - so, you need to tell sendmail of this fact: You can do this with the "massquerading" feature of sendmail. See: http://www.sendmail.org/m4/masquerading_relaying.html and more generally: http://www.sendmail.org/m4/readme.html -- Bill Moran Potential Technologies http://www.potentialtech.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Need help with a strange mail/domain problem!
On Sat, Jul 05, 2003 at 01:56:25PM +0200, Thomas Beutler wrote: > The server accepts incoming mail all right - no problems there... BUT... > ...whatever I do, all outgoing mail get the address > [EMAIL PROTECTED] instead of [EMAIL PROTECTED] You need to build yourself a customised sendmail configuration, which you can do in the following way. % cd /etc/mail # make (# here implies you'll need root privileges to do this command) This will create a file named after your host (referred to as `hostname`.mc) which can be processed through the macro processor m4(1) in order to generate a sendmail configuration file. Now, edit the `hostname`.mc file and add lines according to the following patch: --- visthusboden.beutler.se.mc.old Sat Jul 5 13:22:31 2003 +++ visthusboden.beutler.se.mc Sat Jul 5 13:25:09 2003 @@ -54,6 +54,12 @@ FEATURE(mailertable, `hash -o /etc/mail/mailertable') FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') +FEATURE(allmasquerade)dnl +FEATURE(masquerade_envelope)dnl +FEATURE(masquerade_entire_domain)dnl +MASQUERADE_AS(`beutler.se')dnl +MASQUERADE_DOMAIN(`beutler.se')dnl + dnl Uncomment to allow relaying based on your MX records. dnl NOTE: This can allow sites to use your server as a backup MX without dnl your permission. Now, process the `hostname`.mc file into a sendmail configuration file, install it as /etc/mail/sendmail.cf and restart sendmail so it picks up the changes. # make all # make install # make restart_mta Et voila. Read the file /usr/share/sendmail/cf/README for details about how to generate a sendmail configuration. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: Need help with a strange mail/domain problem!
In bish.lists.freebsd.questions, you wrote: > Third task was to get my email work... and now the problems begins. > > I own the domain beutler.se, and my computers name is visthusboden. > The server accepts incoming mail all right - no problems there... BUT... > ...whatever I do, all outgoing mail get the address > [EMAIL PROTECTED] instead of [EMAIL PROTECTED] > > What am I doing wrong? > > I've checked and tripple-checked every file in /etc/namedb/ and everything > looks fine (no missing dots or > some simple problem like that) and I've really read this through in the > FreeBSD manual... and still... ??? It's not a DNS issue, it's "sendmail". What it's currently doing is correct - by default, it uses your fully qualified hostname for the Sender address -- it doesn't know that "[EMAIL PROTECTED]" will work also - so, you need to tell sendmail of this fact: You can do this with the "massquerading" feature of sendmail. See: http://www.sendmail.org/m4/masquerading_relaying.html and more generally: http://www.sendmail.org/m4/readme.html Cheers, Jamie ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Need help with a strange mail/domain problem!
Hello, On Sat, 2003-07-05 at 11:56, Thomas Beutler wrote: > Hi everyone! > > I'm a total stranger to the Unix world... too long have I dwelled in the > Windows area, and now I'm searching > for new horizons and worlds to explore... the Unix world. I looked around > and found FreeBSD interesting > enough to install... and here I am with a strange problem: > > I installed FreeBSD 5.0-Release and got the system running. So far - so > good. > Second task: Install bind and get the DNS running. So far - so good - at > least I think so. > > Third task was to get my email work... and now the problems begins. > > I own the domain beutler.se, and my computers name is visthusboden. > The server accepts incoming mail all right - no problems there... BUT... > ...whatever I do, all outgoing mail get the address > [EMAIL PROTECTED] instead of [EMAIL PROTECTED] > > What am I doing wrong? > Presuming that sendmail is being used, you need to look into configuring sendmail's masquerade features: http://www.sendmail.org/m4/masquerading.html Hope this helps. Regards, Stacey > I've checked and tripple-checked every file in /etc/namedb/ and everything > looks fine (no missing dots or > some simple problem like that) and I've really read this through in the > FreeBSD manual... and still... ??? > > I'm at whits end here folks... please help me out! > > Kind Regards > /Thomas > > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Stacey Roberts B.Sc (HONS) Computer Science Web: www.vickiandstacey.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"