hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Sendmail + VirtualHosts
Reply

Forum Jump

Sendmail + VirtualHosts

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-14-2001, 06:49 PM
ReliableServers ReliableServers is offline
Web Hosting Master
 
Join Date: Apr 2001
Posts: 1,044

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.



Sponsored Links
  #2  
Old 09-14-2001, 07:05 PM
Jm4n Jm4n is offline
WHT 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

  #3  
Old 09-14-2001, 09:54 PM
ReliableServers ReliableServers is offline
Web Hosting Master
 
Join Date: Apr 2001
Posts: 1,044
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

Sponsored Links
  #4  
Old 09-14-2001, 09:59 PM
cperciva cperciva is offline
Retired Moderator
 
Join Date: Jan 2001
Posts: 2,603
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 qmail

__________________
Dr. Colin Percival, FreeBSD Security Officer
Online backups for the truly paranoid: http://www.tarsnap.com/

  #5  
Old 09-15-2001, 01:29 AM
JTY JTY is offline
Community Guide
 
Join Date: Jun 2000
Location: Washington, USA
Posts: 5,991
Cool

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.

  #6  
Old 09-15-2001, 04:07 AM
Jm4n Jm4n is offline
WHT Addict
 
Join Date: Aug 2001
Posts: 137
Quote:
Or you could just switch to qmail
I fully agree here, I use Qmail exclusively. However, in this situation, if you invoke Qmail's "sendmail" wrapper without the -f option (or -t with From: header), it will still append the local hostname. I believe this is the standard practice.

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

  #7  
Old 09-17-2001, 10:16 PM
ReliableServers ReliableServers is offline
Web Hosting Master
 
Join Date: Apr 2001
Posts: 1,044
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

  #8  
Old 04-10-2003, 01:52 AM
hotice007 hotice007 is offline
WHT Addict
 
Join Date: Feb 2002
Location: CA
Posts: 155
Quote:
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.
I'm interested in this, anyone have the answer?

  #9  
Old 04-10-2003, 04:42 AM
Slidey Slidey is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: UK
Posts: 2,560
qmail is bloody awful

its the least user friendly bit of software ive ever had hte displeasure to install..

  #10  
Old 04-10-2003, 07:12 PM
jbishop jbishop is offline
WHT 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.

  #11  
Old 04-11-2003, 03:16 AM
Slidey Slidey is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: UK
Posts: 2,560
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

  #12  
Old 04-11-2003, 09:11 AM
M0NkEY M0NkEY is offline
Web 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??

Reply

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?