Re: [gentoo-user] Sendmail virtusertable

2006-03-26 Thread Hiren Dave
Hi,
The sendmail configuration is as below.
#sendmail.mc##divert(-1)dnlinclude(`/usr/share/sendmail-cf/m4/cf.m4')dnlVERSIONID(`setup for Red Hat Linux')dnlOSTYPE(`linux')dnldefine(`confDEF_USER_ID',``8:12'')dnl
define(`confTO_CONNECT', `1m')dnldefine(`confTRY_NULL_MX_LIST',true)dnldefine(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnldefine(`ALIAS_FILE', `/etc/aliases')dnldefine(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `200')dnldefine(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnldefine(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnldefine(`confAUTH_OPTIONS', `A')dnldefine(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnlFEATURE(`smrsh',`/usr/sbin/smrsh')dnlFEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnlFEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnlFEATURE(redirect)dnl
FEATURE(always_add_domain)dnlFEATURE(use_cw_file)dnlFEATURE(use_ct_file)dnlFEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnlFEATURE(`access_db',`hash -TTMPF -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnlEXPOSED_USER(`root')dnlDAEMON_OPTIONS(`Port=smtp, Name=MTA')dnlFEATURE(`accept_unresolvable_domains')dnlFEATURE(promiscuous_relay)dnlMAILER(smtp)dnlMAILER(procmail)dnl
#virtusertable##[EMAIL PROTECTED]
[EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED]
[EMAIL PROTECTED]@yahoo.com[EMAIL PROTECTED]@hotmail.com
[EMAIL PROTECTED]@msn.com[EMAIL PROTECTED][EMAIL PROTECTED]
[EMAIL PROTECTED]#local-host-names# local-host-names - include all aliases for your machine here.
guru.comserver1.guru.comserver1domain.com#

= Here is the command output.---#sendmail -bv [EMAIL PROTECTED]
[EMAIL PROTECTED]... deliverable: mailer esmtp, host yahoo.com.guru.com., user [EMAIL PROTECTED]---

It should return [EMAIL PROTECTED]and not [EMAIL PROTECTED]

also removing always_add_domain from sendmail.mc does helping. 
TnRHiren
On 3/26/06, Hiren Dave [EMAIL PROTECTED] wrote:


Hi,

Thank you for your reply. Now I understant it.
TnR

Hiren

On 3/26/06, Boyd Stephen Smith Jr. [EMAIL PROTECTED]
 wrote: 
On Saturday 25 March 2006 06:50, Hiren Dave 
[EMAIL PROTECTED]  wroteabout 'Re: [gentoo-user] Sendmail virtusertable': Here I have used yahoo.com
 domain but it can be any domain lets say domain.com . My network is not connected to Internet. Still do you think
 that the following will not work if guru.com exists and 
domain.com does not exists physically. Here's how mail delivery normally works:1. Message is composed, and sending is initiatied.2. (Optional) message is handed off to a MTA, this might be local, remote
via SMTP, or a separate part of the same application. 3. The domain part of each of the destination addresses is queried for anMX record from DNS; if no MX record exists the A record is used instead.4. An SMTP connection is made to the host (MX) or address (A) and the 
message is delivered there.5. The MDA on that server decides what to do with the message.The mayinvolve forwarding (going back to step 2), local delivery (THIS IS WHERETHE VIRTUAL USER TABLE [or equivalent] IS QUERIED), or other actions. 
6. Once final delivery is made to a mailbox (or the mailboxes), therecipients use POP, IMAP, Web, mbox, maildir, and/or other methods to readthe mail.Does that help?If you are truly isolated from the internet, you can indeed make sure that 
the DNS MX record for yahoo.com points to your MDA and deliver
[EMAIL PROTECTED] to a local mailbox, but it involves more than just yourvirtual user table. --If there's one thing we've established over the years,it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.-- Gentoo Developer Ciaran McCreesh --
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Sendmail virtusertable

2006-03-25 Thread Hiren Dave
Hi,

Here I have used yahoo.com domain but it can be any domain lets say domain.com.My network isnot connected to Internet. Still do you think that the following will not work if 
guru.com exists and domain.com does not exists physically.

###virtusertable###
 @domain.com [EMAIL PROTECTED]


TnR
Hiren

On 3/24/06, Jarry [EMAIL PROTECTED] wrote:

Hiren Dave wrote: Yes, I have MX record. This is a virtuserable concept. 
[EMAIL PROTECTED][EMAIL PROTECTED] @yahoo.com[EMAIL PROTECTED] entry in there and that means mails that are sent to admin and 
yahoo.com should go to root. Am I right?I do not think so. At least I do not believe you own yahoo.com domain,it means you can not set up your 
server1.guru.com as mailserver foryahoo.com domain and redirect all yahoo.com mail to your server.Please, understand, that virtsertable concept is a way of hosting
multiple mail-domains, but you need full control of that domains.Or do you really believe that if you have:@yahoo.com[EMAIL PROTECTED]
it means you can steal all mail sent to all yahoo.com accounts?No offense, but you do not mean it seriously, do you?:-)You can only *redirect* your mail in 
yahoo.com, but only on yourown accounts, and only if yahoo.com supports it. Or you can collectyour mail from yahoo.com through pop3/imap protocols at regular
intervals (again, only if yahoo.com supports it).virtusertable covers local delivering, but *not sending*.When your MTA (sendmail) gets a mail message for 
[EMAIL PROTECTED],it asks nameserver authorised for yahoo.com for correspondingmail-server for deliveries, and *no matter* what you have invirtusertable. But as I said, very probably you do not own 
yahoo.comdomain, so you can not define your server as mailserver for yahoo.com.But, this all is possible to do for your own domain, 
guru.com,if you really have full control of it. I think maybe it's the righttime to read something more about sendmail and bind, or some RFCabout how email works...Jarry--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Sendmail virtusertable

2006-03-25 Thread Jarry

Hiren Dave wrote:

Here I have used yahoo.com domain but it can be any 
domain lets say domain.com . My network is not 
connected to Internet. Still do you think that the following 
will not work if guru.com exists and domain.com 
does not exists physically.


If your domain is NOT connected to internet, how is your MTA
(sendmail) gonna find which mailserver is authorised for
domain.com? domain.com does not have to exist, but there
MUST be a nameserver, authorised for domain.com...

In such a case, you must be sure, that your default nameserver
(in resolv.conf) is authorised for guru.com AND domain.com
(because as you said, your network is not connected to internet)
and that it has MX-record in zone-files for both domains pointing
to server1.guru.com.

I recommend that you start checking your nameserver first, with
dig any domain.com, for example, or nslookup. In the answer there
must be something like domain.com. IN MX 10 server1.guru.com.
If you do not get it, your nameserver is misconfigured, and
your MTA (sendmail) does not know where to deliver mail
for domain.com.

Once more:
1. nameserver authorised for a certain domain (e.g. domain.com)
 defines WHERE mail for this domain should be delivered
2. virtusertable maps virtual users to local mailboxes.
But just adding entry in virtusertable does not mean your
mailserver will get mail for that virtual user/domain...

And one more thing, there should be some entries in logs,
if your mail can not be delivered. If necessary, increase
log levels for bind/sendmail to get more info...

Jarry

BTW, could you please turn off that html-garbage?
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Sendmail virtusertable

2006-03-25 Thread Boyd Stephen Smith Jr.
On Saturday 25 March 2006 06:50, Hiren Dave [EMAIL PROTECTED] wrote 
about 'Re: [gentoo-user] Sendmail virtusertable':
 Here I have used yahoo.com domain but it can be any domain lets say
 domain.com. My network is not connected to Internet. Still do you think
 that the following will not work if guru.com exists and domain.com does
 not exists physically.

Here's how mail delivery normally works:
1. Message is composed, and sending is initiatied.
2. (Optional) message is handed off to a MTA, this might be local, remote 
via SMTP, or a separate part of the same application.
3. The domain part of each of the destination addresses is queried for an 
MX record from DNS; if no MX record exists the A record is used instead.
4. An SMTP connection is made to the host (MX) or address (A) and the 
message is delivered there.
5. The MDA on that server decides what to do with the message.  The may 
involve forwarding (going back to step 2), local delivery (THIS IS WHERE 
THE VIRTUAL USER TABLE [or equivalent] IS QUERIED), or other actions.
6. Once final delivery is made to a mailbox (or the mailboxes), the 
recipients use POP, IMAP, Web, mbox, maildir, and/or other methods to read 
the mail.

Does that help?

If you are truly isolated from the internet, you can indeed make sure that 
the DNS MX record for yahoo.com points to your MDA and deliver 
[EMAIL PROTECTED] to a local mailbox, but it involves more than just your 
virtual user table.

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Sendmail virtusertable

2006-03-25 Thread Hiren Dave
Hi Jarry,

Thanks a lot for your time in solving my problem. I now understand the concept of virtusertable.

TnR
Hiren
On 3/25/06, Jarry [EMAIL PROTECTED] wrote:
Hiren Dave wrote: Here I have used yahoo.com domain but it can be any
 domain lets say domain.com . My network is not connected to Internet. Still do you think that the following will not work if guru.com exists and 
domain.com does not exists physically.If your domain is NOT connected to internet, how is your MTA(sendmail) gonna find which mailserver is authorised for
domain.com? domain.com does not have to exist, but thereMUST be a nameserver, authorised for domain.com...
In such a case, you must be sure, that your default nameserver(in resolv.conf) is authorised for guru.com AND domain.com(because as you said, your network is not connected to internet)
and that it has MX-record in zone-files for both domains pointingto server1.guru.com.I recommend that you start checking your nameserver first, withdig any 
domain.com, for example, or nslookup. In the answer theremust be something like domain.com. IN MX 10 server1.guru.com.If you do not get it, your nameserver is misconfigured, and
your MTA (sendmail) does not know where to deliver mailfor domain.com.Once more:1. nameserver authorised for a certain domain (e.g. domain.com
)defines WHERE mail for this domain should be delivered2. virtusertable maps virtual users to local mailboxes.But just adding entry in virtusertable does not mean yourmailserver will get mail for that virtual user/domain...
And one more thing, there should be some entries in logs,if your mail can not be delivered. If necessary, increaselog levels for bind/sendmail to get more info...JarryBTW, could you please turn off that html-garbage?
--gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Sendmail virtusertable

2006-03-25 Thread Hiren Dave
Hi,

Thank you for your reply. Now I understant it.
TnR
Hiren
On 3/26/06, Boyd Stephen Smith Jr. [EMAIL PROTECTED] wrote:
On Saturday 25 March 2006 06:50, Hiren Dave [EMAIL PROTECTED]
 wroteabout 'Re: [gentoo-user] Sendmail virtusertable': Here I have used yahoo.com domain but it can be any domain lets say domain.com
. My network is not connected to Internet. Still do you think that the following will not work if guru.com exists and domain.com does not exists physically.
Here's how mail delivery normally works:1. Message is composed, and sending is initiatied.2. (Optional) message is handed off to a MTA, this might be local, remotevia SMTP, or a separate part of the same application.
3. The domain part of each of the destination addresses is queried for anMX record from DNS; if no MX record exists the A record is used instead.4. An SMTP connection is made to the host (MX) or address (A) and the
message is delivered there.5. The MDA on that server decides what to do with the message.The mayinvolve forwarding (going back to step 2), local delivery (THIS IS WHERETHE VIRTUAL USER TABLE [or equivalent] IS QUERIED), or other actions.
6. Once final delivery is made to a mailbox (or the mailboxes), therecipients use POP, IMAP, Web, mbox, maildir, and/or other methods to readthe mail.Does that help?If you are truly isolated from the internet, you can indeed make sure that
the DNS MX record for yahoo.com points to your MDA and deliver[EMAIL PROTECTED] to a local mailbox, but it involves more than just yourvirtual user table.
--If there's one thing we've established over the years,it's that the vast majority of our users don't have the slightestclue what's best for them in terms of package stability.-- Gentoo Developer Ciaran McCreesh
--gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Sendmail virtusertable

2006-03-24 Thread Hiren Dave
Hi,

Yes, I have MX record. This is a virtuserable concept. 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
@yahoo.com 
[EMAIL PROTECTED]
entry in there and that means mails that are sent to admin and yahoo.com should go to root. Am I right?
On 3/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hiren Dave [EMAIL PROTECTED] wrote: I have enter below lines in the /etc/mail/virtusertable file.
 [EMAIL PROTECTED][EMAIL PROTECTED] @yahoo.com[EMAIL PROTECTED]
 Then I run this command. # m4 virtusertable  virtusertable.db # service sendmail restart # echo Nice to meet you. | mail -s Test 
[EMAIL PROTECTED] # echo Nice to meet you too. | mail -s Test [EMAIL PROTECTED] But all two mails are in queue and delayed since last 5 hours.
Do you have corresponding MX-record?I mean, nameserver authorised for guru.com domain must haveMX record in guru.com zonefile, which says that 
server1.guru.comis mailserver for guru.com domain, something like (for bind):guru.com. IN MX 10 
server1.guru.com.Jarry--Feel free mit GMX FreeMail!Monat für Monat 10 FreeSMS inklusive! http://www.gmx.net--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Sendmail virtusertable

2006-03-24 Thread Jarry

Hiren Dave wrote:


Yes, I have MX record. This is a virtuserable concept.
[EMAIL PROTECTED]  [EMAIL PROTECTED] 
@yahoo.com  [EMAIL PROTECTED] 
entry in there and that means mails that are sent to admin and yahoo.com 
should go to root. Am I right?


I do not think so. At least I do not believe you own yahoo.com domain,
it means you can not set up your server1.guru.com as mailserver for
yahoo.com domain and redirect all yahoo.com mail to your server.

Please, understand, that virtsertable concept is a way of hosting
multiple mail-domains, but you need full control of that domains.
Or do you really believe that if you have:

@yahoo.com[EMAIL PROTECTED]

it means you can steal all mail sent to all yahoo.com accounts?
No offense, but you do not mean it seriously, do you?  :-)

You can only *redirect* your mail in yahoo.com, but only on your
own accounts, and only if yahoo.com supports it. Or you can collect
your mail from yahoo.com through pop3/imap protocols at regular
intervals (again, only if yahoo.com supports it).

virtusertable covers local delivering, but *not sending*.
When your MTA (sendmail) gets a mail message for [EMAIL PROTECTED],
it asks nameserver authorised for yahoo.com for corresponding
mail-server for deliveries, and *no matter* what you have in
virtusertable. But as I said, very probably you do not own yahoo.com
domain, so you can not define your server as mailserver for yahoo.com.

But, this all is possible to do for your own domain, guru.com,
if you really have full control of it. I think maybe it's the right
time to read something more about sendmail and bind, or some RFC
about how email works...

Jarry
--
gentoo-user@gentoo.org mailing list



[gentoo-user] Sendmail virtusertable

2006-03-23 Thread Hiren Dave
Hi,
I am running sendmail 8.13 on RHELv4WS. Now I have configured this server1 as mailhub.I have enter below lines in the /etc/mail/virtusertable file.
##/etc/mail/virtusertable[EMAIL PROTECTED][EMAIL PROTECTED]@
yahoo.com[EMAIL PROTECTED]#
Then I run this command.
# m4 virtusertable  virtusertable.db# service sendmail restart# echo Nice to meet you. | mail -s Test [EMAIL PROTECTED]# echo Nice to meet you too. | mail -s Test 
[EMAIL PROTECTED]
But all two mails are in queue and delayed since last 5 hours.
Any idea whats wrong?
TnRHiren



Re: [gentoo-user] Sendmail virtusertable

2006-03-23 Thread jarry
Hiren Dave [EMAIL PROTECTED] wrote:

 I have enter below lines in the /etc/mail/virtusertable file.
 [EMAIL PROTECTED]  [EMAIL PROTECTED]
 @yahoo.com  [EMAIL PROTECTED]
 
 Then I run this command.
 # m4 virtusertable  virtusertable.db
 # service sendmail restart
 # echo Nice to meet you. | mail -s Test [EMAIL PROTECTED]
 # echo Nice to meet you too. | mail -s Test [EMAIL PROTECTED]
 
 But all two mails are in queue and delayed since last 5 hours.

Do you have corresponding MX-record?
I mean, nameserver authorised for guru.com domain must have
MX record in guru.com zonefile, which says that server1.guru.com
is mailserver for guru.com domain, something like (for bind):

guru.com. IN MX 10 server1.guru.com.

Jarry

-- 
Feel free mit GMX FreeMail!
Monat für Monat 10 FreeSMS inklusive! http://www.gmx.net
-- 
gentoo-user@gentoo.org mailing list