Re: Using sendmail

2004-06-24 Thread Murat Bicer
Make sure mailtable feature is enabled in the config file.
and you should check the mailertable file location in the sendmail.cf file.
generally
/etc/mail/mailertable:
accepted.domain.com esmtp:[firstserver.hostname]



On Thu, 24 Jun 2004 11:32:37 -0500, antenneX <[EMAIL PROTECTED]> wrote:
> 
> Mailertable -- oho! Never thought of that. Yes, could you send an example of
> the typical mailertable file that will do this?
> 
> Many, many thanks &
> Best regards,
> 
> Jack L. Stone
> 
> 
> - Original Message -
> From: "Murat Bicer" <[EMAIL PROTECTED]>
> To: "antenneX" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, June 24, 2004 11:02 AM
> Subject: Re: Using sendmail
> 
> > you need to user mailertable to send the email from first server to
> > the second one. no need to forward. the second server should accept
> > the emails for the domains it is holding the mailboxes for (in access
> > file)
> >
> > Let me know if you need some config examples.
> >
> > -M.
> >
> > On Thu, 24 Jun 2004 10:46:15 -0500, antenneX <[EMAIL PROTECTED]> wrote:
> > >
> > > Hope this isn't too far OT.
> > >
> > > I want to setup 2 mailservers using sendmail. The first to receive
> emails
> > > for all users (vhosts too) and filter through greylisting. Then forward
> the
> > > rest to another mailserver using SpamAssassin/Procmail on the LAN to
> their
> > > POP3 Inboxes (qpopper) where they will pick up their mail.
> > >
> > > Based on tests so far, it looks like I will have to use an "open relay"
> in
> > > order to forward the emails. Is this correct?
> > >
> > > Would appreciate any URLs where this setup is explained.
> > >
> > > Best regards,
> > >
> > > Jack L. Stone
> > >
> > > ___
> > > [EMAIL PROTECTED] mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> > >
> > ___
> > [EMAIL PROTECTED] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> 
>
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Using sendmail

2004-06-24 Thread Murat Bicer
you need to user mailertable to send the email from first server to
the second one. no need to forward. the second server should accept
the emails for the domains it is holding the mailboxes for (in access
file)

Let me know if you need some config examples.

-M.

On Thu, 24 Jun 2004 10:46:15 -0500, antenneX <[EMAIL PROTECTED]> wrote:
> 
> Hope this isn't too far OT.
> 
> I want to setup 2 mailservers using sendmail. The first to receive emails
> for all users (vhosts too) and filter through greylisting. Then forward the
> rest to another mailserver using SpamAssassin/Procmail on the LAN to their
> POP3 Inboxes (qpopper) where they will pick up their mail.
> 
> Based on tests so far, it looks like I will have to use an "open relay" in
> order to forward the emails. Is this correct?
> 
> Would appreciate any URLs where this setup is explained.
> 
> Best regards,
> 
> Jack L. Stone
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ipfw pipe TCP ?

2003-01-30 Thread Murat Bicer
Can we specify what tcp ports to be sent to pipe in ipfw. Or it can be
used only for layer 3 protocols?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Changes in /bin/sh between 4.6.2 and 4.7

2003-01-24 Thread Murat Bicer
Sorry about the question.

It was in the release notes.

sh(1) no longer accepts invalid constructs as command & && command, &&
command, or || command.


On Fri, 24 Jan 2003 10:43:22 -0500, "Murat Bicer" <[EMAIL PROTECTED]> said:
> Has something changed in sh between these versions:
> 
> I get a weird error on some of my scripts
> 
> #!/bin/sh
> 
> case "$1" in
> start)
> [ -x /usr/local/sbin/freevrrpd ] &&
> /usr/local/sbin/freevrrpd &&
>  echo -n ' freevrrpd'
> ;;
> stop)
> killall freevrrpd > /dev/null 2>&1 & && echo -n '
> freevrrpd'
> ;;
> *)
> echo ""
> echo "Usage: `basename $0` { start | stop }"
>     echo ""
> exit 64
> ;;
> esac
> ha1# sh -x /home/murat/freevrrpd.sh stop
> /home/murat/freevrrpd.sh: 8: Syntax error: "&&" unexpected
> 
> 
> Murat Bicer
> [EMAIL PROTECTED]
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
> 
Murat Bicer
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Changes in /bin/sh between 4.6.2 and 4.7

2003-01-24 Thread Murat Bicer
Has something changed in sh between these versions:

I get a weird error on some of my scripts

#!/bin/sh

case "$1" in
start)
[ -x /usr/local/sbin/freevrrpd ] &&
/usr/local/sbin/freevrrpd &&
 echo -n ' freevrrpd'
;;
stop)
killall freevrrpd > /dev/null 2>&1 & && echo -n '
freevrrpd'
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac
ha1# sh -x /home/murat/freevrrpd.sh stop
/home/murat/freevrrpd.sh: 8: Syntax error: "&&" unexpected


Murat Bicer
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: make installworld failed

2003-01-17 Thread Murat Bicer
You might need

cd /usr/src && make cleandir && make cleandir

If it keeps giving errors.

-Murat

On Thu, 16 Jan 2003 01:11:10 -0800, "Kent Stewart" <[EMAIL PROTECTED]>
said:
> On Thursday 16 January 2003 12:56 am, Selvam wrote:
> > Hi Kent,
> >
> > thanks for replying, I tried the way to tell my but still no avail..
> > I tried cvsup'ing again and i did the below :-
> >
> > # cd /usr/src
> > # make buildkernel KERNCONF=MYKERNEL
> > # make installkernel KERNCONF=MYKERNEL
> >
> > then i rebooted the server and ran
> > # cd /usr/src
> > # make installworld
> >
> > and still i get the same error..like below
> 
> You didn't change anything. Your build created a file called 
> osreldate.h. The creation date of that file is bad. It is probably 
> older then the files that it was created from. So, it tries to redo 
> things and it can't because touch isn't one of the included files. 
> 
> You have to do "make buildworld" to recreate the files with the proper 
> date.
> 
> Kent
> >
> > --
> >
> > >>> Installing everything..
> >
> > --
> > cd /usr/src; make -f Makefile.inc1 install
> > ===> share/info
> > ===> include
> > creating osreldate.h from newvers.sh
> > setvar PARAMFILE /usr/src/include/../sys/sys/param.h;  .
> > /usr/src/include/../sys/conf/newvers.sh; echo "$COPYRIGHT" >
> > osreldate.h; echo "#ifdef _KERNEL" >> osreldate.h; echo '#error
> > "osreldate.h must not be used in the kernel, use sys/param.h"' >>
> > osreldate.h;  echo "#else" >> osreldate.h;  
> > echo \#'undef __FreeBSD_version' >> osreldate.h;echo
> > \#'define __FreeBSD_version' $RELDATE >> osreldate.h;  echo "#endif"
> > >> osreldate.h
> > touch: not found
> > *** Error code 127
> >
> > Stop in /usr/src/include.
> > *** Error code 1
> >
> > Stop in /usr/src.
> > *** Error code 1
> >
> > Stop in /usr/src.
> > *** Error code 1
> >
> > Stop in /usr/src.
> > *** Error code 1
> >
> > -Original Message-
> > From: Kent Stewart [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 16, 2003 4:37 PM
> > To: Selvam; Freebsd
> > Subject: Re: make installworld failed
> >
> > On Wednesday 15 January 2003 11:50 pm, Selvam wrote:
> > > HI there,
> > >
> > > After cvsup i ran make buildkernel and installkernel but when i ran
> > > make installworld for the binaries I ran into
> > > some error like below :-
> > >
> > > --
> > >
> > > >>> Installing everything..
> > >
> > > --
> > > cd /usr/src; make -f Makefile.inc1 install
> > > ===> share/info
> > > ===> include
> > > creating osreldate.h from newvers.sh
> > > setvar PARAMFILE /usr/src/include/../sys/sys/param.h;  .
> > > /usr/src/include/../sys/conf/newvers.sh; echo "$COPYRIGHT" >
> > > osreldate.h; echo "#ifdef _KERNEL" >> osreldate.h; echo '#error
> > > "osreldate.h must not be used in the kernel, use sys/param.h"' >>
> > > osreldate.h;  echo "#else" >> osreldate.h;
> > > echo \#'undef __FreeBSD_version' >> osreldate.h;echo
> > > \#'define __FreeBSD_version' $RELDATE >> osreldate.h;  echo
> > > "#endif"
> > >
> > > >> osreldate.h
> > >
> > > touch: not found
> > > *** Error code 127
> > >
> > > Stop in /usr/src/include.
> > > *** Error code 1
> > >
> > > Stop in /usr/src.
> > > *** Error code 1
> > >
> > > Stop in /usr/src.
> > > *** Error code 1
> > >
> > > Stop in /usr/src.
> > > *** Error code 1
> > >
> > > Stop in /usr/src.
> > >
> > > What can be the problem? I remember reseting the date earlier; but
> > > I ran make installworld after setting to new date.
> > > Would this be athe problem? In that case what should I do?
> >
> > You needed to do the buildworld again. It still has the old date on
> > files that it created.
> >
> > Kent
> >
> > > Thanks in advance..
> > >
> > > Selvam
> > >
> > >
> > > To Unsubscribe: send mail to [EMAIL PROTECTED]
> > > with "unsubscribe freebsd-questions" in the body of the message
> 
> -- 
> Kent Stewart
> Richland, WA
> 
> http://users.owt.com/kstewart/index.html
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
> 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



profiling in makefile

2003-01-14 Thread Murat Bicer
Is there a documentation on this? How, why it can be used.

Thanks,
Murat

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: incoming bandwidth limiting using ipfilter

2003-01-03 Thread Murat Bicer
Is there anything that limits us from using ipfilter on top of this ipfw
b/w control?

> Is there a way to limit incoming traffic (bandwidth) using
> ipfilter/ipfw or any such software tool?. 

you'll want to lookup information on dummynet:
 http://info.iet.unipi.it/~luigi/ip_dummynet/

you can use it to shape traffic and limit bandwidth.
Murat Bicer
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: cannot write to new harddisk

2002-12-30 Thread Murat Bicer
:> ERROR: Unable to write data to disk ad3!
:> 
:> But I can write to this disk using the freebsd install cd.
:> 
:> System is 4-6-2-STABLE with GENERIC kernel
:
:What's your securelevel?

kern_securelevel="2"


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



cannot write to new harddisk

2002-12-30 Thread Murat Bicer
from dmesg:

ad3: 76319MB  [155061/16/63] at ata1-slave PIO4

ha2-ha1# dd if=/dev/zero of=/dev/ad3 bs=1k count=1
dd: /dev/ad3: Operation not permitted
ha2-ha1# ls -al /dev/ad3
crw-r-  2 root  operator  116, 0x0001001a Dec 30 12:10 /dev/ad3
ha2-ha1#


similarly sysinstall fdisk cannot write to disk with error:

ERROR: Unable to write data to disk ad3!

But I can write to this disk using the freebsd install cd.

System is 4-6-2-STABLE with GENERIC kernel

Any ideas.

Thanks,
Murat

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Interactive fdisk

2002-12-30 Thread Murat Bicer
Is there a linux fdisk like utility on freebsd that can be used
interactively?

What is /stand/sysinstall configure fdisk calling?

Thanks
Murat 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



interactive fdisk

2002-12-29 Thread Murat Bicer
Is there a linux fdisk like utility on freebsd that can be used
interactively?

What is /stand/sysinstall configure fdisk calling?

Thanks
Murat
Murat Bicer
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



booting into another partition without console interruption.

2002-12-28 Thread Murat Bicer
Lets say I have 2 freebsd instances installed on a box.

partition 1 contains one system, and partition 2 contains another freebsd
system.

Using freebsd boot loader, you need to press F1, F2 etc to select the
partition to boot from.
Say, I am on the system on partition one and I want to boot into
partition two without any console interruption (i.e pressing F2 on the
console.)

Is there a way to do this?

All feedback appreciated.

Murat

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message