* [gentoo-user] Sendmail virtusertable @ 2006-03-23 13:26 Hiren Dave 2006-03-23 14:34 ` jarry 0 siblings, 1 reply; 10+ messages in thread From: Hiren Dave @ 2006-03-23 13:26 UTC (permalink / raw To: gentoo-user, VGLUG [-- Attachment #1: Type: text/plain, Size: 700 bytes --] 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#################### admin@guru.com root@server1.guru.com @yahoo.com root@server1.guru.com ##################################################################### Then I run this command. # m4 virtusertable > virtusertable.db # service sendmail restart # echo "Nice to meet you." | mail -s Test admin@guru.com # echo "Nice to meet you too." | mail -s Test hiren@yahoo.com But all two mails are in queue and delayed since last 5 hours. Any idea whats wrong? TnR Hiren [-- Attachment #2: Type: text/html, Size: 1049 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Sendmail virtusertable 2006-03-23 13:26 [gentoo-user] Sendmail virtusertable Hiren Dave @ 2006-03-23 14:34 ` jarry 2006-03-24 11:54 ` Hiren Dave 0 siblings, 1 reply; 10+ messages in thread From: jarry @ 2006-03-23 14:34 UTC (permalink / raw To: gentoo-user [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 924 bytes --] "Hiren Dave" <hiren2k4@gmail.com> wrote: > I have enter below lines in the /etc/mail/virtusertable file. > admin@guru.com root@server1.guru.com > @yahoo.com root@server1.guru.com > > Then I run this command. > # m4 virtusertable > virtusertable.db > # service sendmail restart > # echo "Nice to meet you." | mail -s Test admin@guru.com > # echo "Nice to meet you too." | mail -s Test hiren@yahoo.com > > 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Sendmail virtusertable 2006-03-23 14:34 ` jarry @ 2006-03-24 11:54 ` Hiren Dave 2006-03-24 17:49 ` Jarry 0 siblings, 1 reply; 10+ messages in thread From: Hiren Dave @ 2006-03-24 11:54 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1272 bytes --] Hi, Yes, I have MX record. This is a virtuserable concept. admin@guru.com root@server1.guru.com @yahoo.com root@server1.guru.com entry in there and that means mails that are sent to admin and yahoo.comshould go to root. Am I right? On 3/23/06, jarry@gmx.net <jarry@gmx.net> wrote: > > "Hiren Dave" <hiren2k4@gmail.com> wrote: > > > I have enter below lines in the /etc/mail/virtusertable file. > > admin@guru.com root@server1.guru.com > > @yahoo.com root@server1.guru.com > > > > Then I run this command. > > # m4 virtusertable > virtusertable.db > > # service sendmail restart > > # echo "Nice to meet you." | mail -s Test admin@guru.com > > # echo "Nice to meet you too." | mail -s Test hiren@yahoo.com > > > > 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 > > [-- Attachment #2: Type: text/html, Size: 2921 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Sendmail virtusertable 2006-03-24 11:54 ` Hiren Dave @ 2006-03-24 17:49 ` Jarry 2006-03-25 12:50 ` Hiren Dave 0 siblings, 1 reply; 10+ messages in thread From: Jarry @ 2006-03-24 17:49 UTC (permalink / raw To: gentoo-user Hiren Dave wrote: > Yes, I have MX record. This is a virtuserable concept. > admin@guru.com root@server1.guru.com > @yahoo.com root@server1.guru.com > 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 root@server1.guru.com 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 anything@yahoo.com, 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Sendmail virtusertable 2006-03-24 17:49 ` Jarry @ 2006-03-25 12:50 ` Hiren Dave 2006-03-25 13:28 ` Jarry 2006-03-25 19:02 ` Boyd Stephen Smith Jr. 0 siblings, 2 replies; 10+ messages in thread From: Hiren Dave @ 2006-03-25 12:50 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2308 bytes --] Hi, 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. ###############virtusertable########################### @domain.com root@server1.guru.com #################################################### TnR Hiren On 3/24/06, Jarry <jarry@gmx.net> wrote: > Hiren Dave wrote: > > > Yes, I have MX record. This is a virtuserable concept. > > admin@guru.com root@server1.guru.com > > @yahoo.com root@server1.guru.com > > 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 root@server1.guru.com > > 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 anything@yahoo.com, > 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 > > [-- Attachment #2: Type: text/html, Size: 3963 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Sendmail virtusertable 2006-03-25 12:50 ` Hiren Dave @ 2006-03-25 13:28 ` Jarry 2006-03-26 6:34 ` Hiren Dave 2006-03-25 19:02 ` Boyd Stephen Smith Jr. 1 sibling, 1 reply; 10+ messages in thread From: Jarry @ 2006-03-25 13:28 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Sendmail virtusertable 2006-03-25 13:28 ` Jarry @ 2006-03-26 6:34 ` Hiren Dave 0 siblings, 0 replies; 10+ messages in thread From: Hiren Dave @ 2006-03-26 6:34 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1968 bytes --] 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 <jarry@gmx.net> 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 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 > > [-- Attachment #2: Type: text/html, Size: 2934 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Sendmail virtusertable 2006-03-25 12:50 ` Hiren Dave 2006-03-25 13:28 ` Jarry @ 2006-03-25 19:02 ` Boyd Stephen Smith Jr. 2006-03-26 6:36 ` Hiren Dave 1 sibling, 1 reply; 10+ messages in thread From: Boyd Stephen Smith Jr. @ 2006-03-25 19:02 UTC (permalink / raw To: gentoo-user On Saturday 25 March 2006 06:50, "Hiren Dave" <hiren2k4@gmail.com> 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 foo@yahoo.com 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Sendmail virtusertable 2006-03-25 19:02 ` Boyd Stephen Smith Jr. @ 2006-03-26 6:36 ` Hiren Dave 2006-03-26 17:19 ` Hiren Dave 0 siblings, 1 reply; 10+ messages in thread From: Hiren Dave @ 2006-03-26 6:36 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1955 bytes --] Hi, Thank you for your reply. Now I understant it. TnR Hiren On 3/26/06, Boyd Stephen Smith Jr. <bss03@volumehost.net> wrote: > > On Saturday 25 March 2006 06:50, "Hiren Dave" <hiren2k4@gmail.com> 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 > foo@yahoo.com 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 > > [-- Attachment #2: Type: text/html, Size: 2623 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Sendmail virtusertable 2006-03-26 6:36 ` Hiren Dave @ 2006-03-26 17:19 ` Hiren Dave 0 siblings, 0 replies; 10+ messages in thread From: Hiren Dave @ 2006-03-26 17:19 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 4767 bytes --] Hi, The sendmail configuration is as below. #####################sendmail.mc########################################## divert(-1)dnl include(`/usr/share/sendmail-cf/m4/cf.m4')dnl VERSIONID(`setup for Red Hat Linux')dnl OSTYPE(`linux')dnl define(`confDEF_USER_ID',``8:12'')dnl define(`confTO_CONNECT', `1m')dnl define(`confTRY_NULL_MX_LIST',true)dnl define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl define(`ALIAS_FILE', `/etc/aliases')dnl define(`STATUS_FILE', `/var/log/mail/statistics')dnl define(`UUCP_MAILER_MAX', `2000000')dnl define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl define(`confAUTH_OPTIONS', `A')dnl define(`confTO_IDENT', `0')dnl FEATURE(`no_default_msa',`dnl')dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl FEATURE(redirect)dnl FEATURE(always_add_domain)dnl FEATURE(use_cw_file)dnl FEATURE(use_ct_file)dnl FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl FEATURE(`blacklist_recipients')dnl EXPOSED_USER(`root')dnl DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl FEATURE(`accept_unresolvable_domains')dnl FEATURE(promiscuous_relay)dnl MAILER(smtp)dnl MAILER(procmail)dnl ########################################################################## #######################virtusertable###################################### admin@guru.com root@server1.guru.com administrator@guru.com root@server1.guru.com dave@guru.com root@server1.guru.com @yahoo.com root@server1.guru.com @hotmail.com root@server1.guru.com @msn.com %1@server1.guru.com hirendave@msn.com root@server1.guru.com ########################################################################## ###########################local-host-names################################ # local-host-names - include all aliases for your machine here. guru.com server1.guru.com server1 domain.com ######################################################################### => Here is the command output. ----------------------------------------------------------------------- #sendmail -bv hiren@domain.com hiren@domain.com... deliverable: mailer esmtp, host yahoo.com.guru.com., user hiren@domain.com.guru.com ----------------------------------------------------------------------- It should return hiren@server1.guru.com and not hiren@domain.com.guru.com also removing always_add_domain from sendmail.mc does helping. TnR Hiren On 3/26/06, Hiren Dave <hiren2k4@gmail.com> wrote: > > Hi, > > Thank you for your reply. Now I understant it. > > TnR > Hiren > > On 3/26/06, Boyd Stephen Smith Jr. <bss03@volumehost.net> wrote: > > > > On Saturday 25 March 2006 06:50, "Hiren Dave" <hiren2k4@gmail.com > > > 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.comdoes > > > 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 > > foo@yahoo.com 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 > > > > > [-- Attachment #2: Type: text/html, Size: 7609 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-03-26 17:25 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-03-23 13:26 [gentoo-user] Sendmail virtusertable Hiren Dave 2006-03-23 14:34 ` jarry 2006-03-24 11:54 ` Hiren Dave 2006-03-24 17:49 ` Jarry 2006-03-25 12:50 ` Hiren Dave 2006-03-25 13:28 ` Jarry 2006-03-26 6:34 ` Hiren Dave 2006-03-25 19:02 ` Boyd Stephen Smith Jr. 2006-03-26 6:36 ` Hiren Dave 2006-03-26 17:19 ` Hiren Dave
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox