Results 1 to 12 of 12
Thread: Sendmail + VirtualHosts
-
09-14-2001, 06:49 PM #1Web Hosting Master
- Join Date
- Apr 2001
- Posts
- 1,045
Sendmail + VirtualHosts
How do you setup sendmail to allow users one the server to use there virtualhost when sending out emails? They can recieve the incoming fine, but if they sendmail out it shows the servers main domain name and not theirs, even if the domain is put into pine or the cgi program used to send mail for them.
Users Joe has virtual host joesdomain.com
when he sends mail out it shows joe@myhostdomain.com instead of joe@joesdomain.com . Any ideas?
Thanks in advance.
-
09-14-2001, 07:05 PM #2WHT Addict
- Join Date
- Aug 2001
- Posts
- 137
I don't think this is a "Sendmail" (the mail server software) issue exactly, but it may be how "sendmail" (the mail sending utility) handles the email address.
Make sure when sending using "sendmail" (eg, from a perl script) that you specify a -f flag - or use -t and specify the sender in the To: header.
No matter what, the server name will be in the message headers, but the From address is completely user-controlled.- Jman
-
09-14-2001, 09:54 PM #3Web Hosting Master
- Join Date
- Apr 2001
- Posts
- 1,045
No matter where its sent from, pine or a cgi script it shows the servers domain and not the users. Is there a setting in sendmail to allow users to change the From to something else?
Thanks
-
09-14-2001, 09:59 PM #4Web Hosting Master
- Join Date
- Jan 2001
- Posts
- 2,605
Invoke sendmail with the -f option. Depending upon the configuration you might get an X-Authentication-Warning header added, but that's not exactly a non-feature anyway.
Or you could just switch to qmailDr. Colin Percival, FreeBSD Security Officer
Online backups for the truly paranoid: http://www.tarsnap.com/
-
09-15-2001, 01:29 AM #5Web Hosting Master
- Join Date
- Jun 2000
- Location
- Washington, USA
- Posts
- 5,990
This is a simple to deal with one, check out http://www.sendmail.org/virtual-hosting.html
What you need to setup is the generics table, which I've done in the past and it works great.
-
09-15-2001, 04:07 AM #6WHT Addict
- Join Date
- Aug 2001
- Posts
- 137
Or you could just switch to qmail
As for Pine, I have no idea; I do know that Pine doesn't support Qmail's MailDir format, which is far superior than the old 'mbox' format... but on a friend's machine, we had a similar problem with Pine.
What we had to do was to open Pine, hit "S", then "C", and edit the "user-domain" to reflect the current email address. Before changing this, on the friend's machine (Linux with Sendmail) it was doing just what you describe.- Jman
-
09-17-2001, 10:16 PM #7Web Hosting Master
- Join Date
- Apr 2001
- Posts
- 1,045
Where do you invoke this -f or -t from? Ive tried in Pine to change the User Domain and it still uses my main host domain.
THanks
-
04-10-2003, 01:52 AM #8WHT Addict
- Join Date
- Feb 2002
- Location
- CA
- Posts
- 155
Where do you invoke this -f or -t from? Ive tried in Pine to change the User Domain and it still uses my main host domain.
-
04-10-2003, 04:42 AM #9Web Hosting Master
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,569
qmail is bloody awful
its the least user friendly bit of software ive ever had hte displeasure to install..
-
04-10-2003, 07:12 PM #10WHT Addict
- Join Date
- Mar 2003
- Location
- Austin, TX
- Posts
- 132
If user friendliness is your goal, then you probably aren't going to be running sendmail either.
Also, do you realize that there hasn't been a new release of qmail in years? Good ol' qmail 1.04, while being somewhat feature-light, hasn't had a single security hole in all that time.
We won't even discuss the number of holes sendmail's had recently.
-
04-11-2003, 03:16 AM #11Web Hosting Master
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,569
i use postfix.. it seems to be a) securer and b) far easier to use than qmail..
i remember openbsd saying 'we havent had a remote hole in blah blah blah'. did you not notice that 'they' (the blackhats i guess) dont release code/exploits/vulnerability information anymore..? just because nothing has been released, doesnt mean its secure
-
04-11-2003, 09:11 AM #12Web Hosting Guru
- Join Date
- Dec 2002
- Posts
- 316
Hey I added
FEATURE(`genericstable', `dbm /etc/mail/genericstable')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl
to my sendmail config and now I get this error
/etc/mail/sendmail.cf: line 167: readcf: map generics: class dbm not available
How do I make class dbm available??