Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

POP3 and Sendmail for virtual hosts

Status
Not open for further replies.

wreikun

Technical User
Apr 23, 2002
63
US
Hello. Ive been stuck on trying to be able configure sendmail and POP3 so that virtual domains can accept mail and the owners of those virtual domains can pop into mail.virtualdomain.com to retrieve and send mail rather than relay mail using the likes of a virtusertable. I would very much appreciate some tips on how I can set up sendmail to accomplish this. Please help. Im still a beginner at this stuff =)
 
I'm assuming your using a linux variant.

For those new or having trouble with the sendmail fundamentals, I highly recommend webmin (webmin.com). It's a great management utility with a graphical interface allowing you to visualize all the different aspects of sendmail that you can configure.

In your particular situation, I'd highly recommend virtuser with aliases. I've done this in the past and it worked rather well for me....

Regards,
FM
 
Thanks for the link and suggestion FinnMan. I dont quite understand what you mean by 'virtuser with aliases.' Do you mean to create a virtusertable database and an aliases database and add these FEATUREs in the .mc file and then create a new sendmail.cf?
 
That's it exactly...

Here's my mc as an example. Notice also I use ordb.org as a spam preventative.

divert(-1)
dnl This is the sendmail macro config file. If you make changes to this file,
dnl you need the sendmail-cf rpm installed and then have to generate a
dnl new /etc/sendmail.cf by running the following command:
dnl
dnl m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
OSTYPE(`linux')
define(`confDEF_USER_ID',``8:12'')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/sendmail.st')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
"/etc/mail/sendmail.mc" 55L, 2294C
define(`confAUTH_OPTIONS', `A')dnl
dnl TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
dnl FEATURE(delay_checks)dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl
FEATURE(`virtusertable',`hash -o etc/mail/virtusertable')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail)dnl
FEATURE(`access_db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`relay_based_on_MX')dnl
FEATURE(`dnsbl', `relays.ordb.org', `Rejected - see MAILER(smtp)dnl
MAILER(procmail)dnl



Regards,
FM
 
Hi FM. Thank you for your reply and sample .mc file. It has been a great help! However, my ultimate goal is to find out how I can host virtual hosts where clients can pop into their virtualdomains (at addresses such as mail.virtualdomain.com) and pull their mail from their spool. Ive been thinking about this for a while, and came up with adding mail.virtualdomain.com as a canonical name to in the zone file for virtualdomain.com. So when a clients mail user agent(like outlook express) pops into mail.virtualdomain.com, it is really connecting to port 110 of And it pulls its mail from there. Is this correct? Thanks! =)
 
okay, nevermind my last entry. kinda figured out that the whole canonical name thing doesnt work that way. can anybody give me a clue as to how i can enable pop service to a virtual domain? like if i was hosting i want to make it so the client can pop into mail.virtualdomain.com to pull their mail. any help is appreciated. thanks.
 
What your talking about ther wreikun is not so much a sendmail issue as a DNS issue. You'll need to configure the IN A records and the MX records for your domains (webmin also recommended for this). You were in the right direction with the CName records.

After you've done that you'll need to configure sendmail so that it knows what domains it hosts mail for.

All in all, it's pretty straight forward...

Regards,
FM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top