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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendmail multidomain

Status
Not open for further replies.

milo974

Technical User
Apr 18, 2006
6
FR
hello,
i ve installed sendmail for domains :
dom1.com ; dom2.com

i ve users : jyt@dom1.com and mike@dom2.com

i have in my virtusertable :
jyt@dom1.com jyt
mike@dom2.com mike

all are ok but :
when someone send a mail to mike@dom1.com, it is accepted!
therfore mike address is : mike@dom2.com
the same problem when user send mail to jyt@dom2.com :(

How can i resolve this problem ?
 
Make sure these files are set-up correctly.

access
Code:
dom1.com	RELAY
dom2.com	RELAY
domaintable
Code:
dom1.com	[i]your_hostname_here[/i]
dom2.com	[i]your_hostname_here[/i]
local-host-names
Code:
dom1.com
dom2.com
trusted-users
Code:
jyt
mike
virtusertable
Code:
jyt@dom1.com	jyt
mike@dom2.com	mike
Then make sure your sendmail.mc has this line.
Code:
FEATURE(`virtusertable', `hash MAIL_SETTINGS_DIR/virtusertable.db')dnl
Rebuild the DBM's and sendmail.mc
Code:
% makemap hash /etc/mail/access < /etc/mail/access
% makemap hash /etc/mail/domaintable < /etc/mail/domaintable
% makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
% m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
And restart sendmail
Code:
% killall -SIGHUP sendmail

M. Brooks
 
i have done that you said, but i ve got the same problem !
when i send a mail for : jyt@dom2.com , i receive it in my maildir : jyt@dom1.com
Where is the problem ?
How to resolve it ?
 
so here is my sendmail.mc :

define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.13.4-3sarge1 2006-03-22 22:41:17 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/sendmail/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl
define(`confINPUT_MAIL_FILTERS', `spamassassin')dnl
define(`confMILTER_MACROS_CONNECT', `b, j, _, {daemon_name}, {if_name}, {if_addr}')dnl
FEATURE(`no_default_msa')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=0.0.0.0')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, Addr=0.0.0.0')dnl
dnl #
define(`confMAX_MESSAGE_SIZE', `5242880')
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')
define(`confCHECK_ALIASES', `true')dnl
define(`confPRIVACY_FLAGS',dnl
`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
FEATURE(`access_db', , `skip')dnl
FEATURE(`greet_pause', `1000')dnl 1 seconds
FEATURE(local_procmail)
FEATURE(`delay_checks', `friend', `n')dnl
define(`confBAD_RCPT_THROTTLE',`3')dnl
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
FEATURE(`virtusertable', `hash MAIL_SETTINGS_DIR/virtusertable.db')dnl
LOCAL_CONFIG
FEATURE(`masquerade_envelope')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`always_add_domain')dnl
LOCAL_CONFIG
FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`redirect')dnl
FEATURE(`nouucp', `reject')dnl
MAILER_DEFINITIONS
MAILER(procmail)dnl
MAILER(smtp)dnl
LOCAL_CONFIG

thank's to your help !
 
One last thing. Send a message to a client that fails and paste the log message so I can see what is being returned.

Thanks,

M

M. Brooks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top