Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 7th, 2004, 05:05 PM
rubysky rubysky is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 rubysky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sendmail setup on linux box

hello,

i'm in the process of setting up sendmail on my first linux box, and i'm running into a couple of "issues",

1. sendmail will handle 2 domains on this box, what is the best practice in mapping different external email addresses to the internal user account?

i.e.
URL <--> linux_user_a
URL <--> linux_user_b

etc.

2. i have a php webpage which allow users to enter their email address and email their friend using php/apache/sendmail. the <return-path> is ALWAYS set to "apache", owner of apache/httpd process. any idea how to change this programmatically/dyamically to the user's provided email in the web form?

MORE questions to follow! thank you in advance for any assistance.

Rs.

Reply With Quote
  #2  
Old January 8th, 2004, 04:10 AM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 15
Quote:
i'm in the process of setting up sendmail on my first linux box

You really don't want to use sendmail for handling incoming mail; it's buggy, unreliable and has had a very poor security track record. I would strongly recommend that you move to qmail instead. Installation instructions are at http://www.lifewithqmail.org

Quote:
i have a php webpage which allow users to enter their email address and email their friend using php/apache/sendmail.

This is a very bad idea; forms of this nature are frequently abused by spammers to relay junk email through your server. This may well be against your ISP's terms of service, and will make you very unpopular with them.

Having said that, you can get around this problem by defining your own From and Return-Path headers in the headers parameter of the mail() function.
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
  #3  
Old January 9th, 2004, 12:42 PM
rubysky rubysky is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 rubysky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks alex!

i should be in the position to decide which sw pkg i want to use in a couple of years when i'm more higher up... but unfortunately, i don't have the "power" to do so at this moment...

the box is going to host maybe 2 domains, currently, i have it setup to use the "masquerade" feature to modify one domain.

Questions:

1. do i need 2 instances of sendmail for 2 domains? seems like i can only masquerade all domains into ONE domain? i have looked into the genericstable but this won't mask everything.. i.e. "return-path" etc?

2. do i need to create a new local linux user for each email user? or is there a way to create a "master" user for one domain and have some software to deliver the mail via pop or alike?

thanks again!

RS.

Reply With Quote
  #4  
Old January 9th, 2004, 12:48 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 15
Quote:
1. do i need 2 instances of sendmail for 2 domains?

No, you can use virtual hosting.
Quote:
seems like i can only masquerade all domains into ONE domain? i have looked into the genericstable but this won't mask everything.. i.e. "return-path" etc?

You configure this in your email client.
Quote:
2. do i need to create a new local linux user for each email user? or is there a way to create a "master" user for one domain and have some software to deliver the mail via pop or alike?

You need to create a new UNIX user for each email user, yes. In the virtualdomains file you can set one user up to be the default user, i.e. mail that isn't delivered more specifically will go to him by default. See http://www.sendmail.org/virtual-hosting.html for details.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > sendmail setup on linux box

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap