+++ USM Bish [linux-india] <05/12/01 20:17 +0530>:
> > What  I find is that this is not happening. If hsrai ( as 
> > in example above ) send mail to bish, it goes to his vsnl
> > account. But when Bish send mail it goes as sender
> > bish@my_pc_name_domain , inspite of having any thing in
> > "From:" field.

>From != envelope_from / smtp mail from: ...
 
> This is possible if nde.vsnl.net.in is not there in your
> mailertable. The file mailertable.db needs to have this.
> Your mailertable should have entries like this, and then
> re-compiled to make mailertable.db:
> nde.vsnl.net.in               smtp:nde.vsnl.net.in
> iitr.ernet.in         smtp:smtp.iitr.ernet.in

No! That's what DNS is for.  A mailertable would be if you want to ignore MX
records when sending to that host, and send to a totally different mailserver
instead.

For example ... suppose you are on a box with a public IP (202.54.30.2 VSNL)
+ a private IP (10.0.3.1) as your lan mailserver.  Suppose your LAN actually
sits on a satyam leased line shared across yr lan by NAT.

Mails are sent through a different mailserver 10.0.3.20 on your LAN (seperate
pop3 and smtp servers).

Now, the LAN is connected to the 'net via a NAT box ... directly.  Suppose
someone sends mail to another user on the same domain, mail would typically
be sent out to 10.0.3.20.  That looks up MX records for yourdomain.com - and
sees 202.54.30.2.  So, it sends the mail via the internet to 202.54.30.2 ...
from Satyam to VSNL.  This means that a mail from one user to another user
two cabins away might go to satyam -> uunet -> vsnl [just a random example]

Instead set a mailertable

domain.com      esmtp:[10.0.3.1]

on the outbound mailserver (smtp server).  So mails are delivered within the
LAN itself, without touching the 'net - ignoring MX records.

> > >>> RCPT To:<[EMAIL PROTECTED]>
> > 553 <[EMAIL PROTECTED]>... Sender domain <rai.iitr.ernet.in> does not exist
> >                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> This indicates that rai.iitr.ernet.is not a  valid SMTP
> address. The rai (prefix) is erroneously being sent. 

In mutt, set envelope_from in your muttrc.  In pine, set user-domain in pine
config to send mail as iitr.ernet.in

http://www.hserus.net/dlhowto.html applies in large parts to LAN setups as
well.

-- 
Suresh Ramasubramanian  <---->  mallet <at> efn dot org
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to