Re: How do i send mail to certain domain users over external smtp using sendmail?



On Thu, May 11, 2006 at 07:23 , while impersonating an expert on
the internet, Nash Nipples sent this to stdout:

Bill!! you are my superman! lol i dont even know how to thank you.

I've been running sendmail since it became more civilized in the
early 1990s after running smail for awhile.

all i had to do is recompile the sendmail!!!!!! it is truly
flexible and ununinstallable. :) mailertable did the thing.
i would like to consider the problem to be solved. if no
objections pending?

You really didn't have to recompile sendmail. Running make
in /etc/mail would have compiled a new mailertable.db with
nothing else required by you.

next time i will pay more time to the sendmail documentation
prior to writing out the problems.

Reading documentation always help. Learning to read documentation
is the road to expertise.

And in another post you asked about having some user who is
considered local use another SMTP agent. Use virtusertable,
also in /etc/mail

If you don't want 'joe' a local user, to get mail locally
put this in virtusertable

joe joe@<some.other.smtp>

And then re-run make.

I also use virtusertable to throwaway things for users that dont
exist.

I just use the @my.domain.name nouser

And in /etc/aliases I have 'nouser' aliased to /dev/null

Bill
NASH!

-ty

Bill Vermillion <bv@xxxxxxx> wrote: The door open and in walked trouble - disguised as our our old
nemesis Nash Nipples, who uttered, at Thu, May 11, 2006 at 04:27 :


Duane Whitty wrote: Nash Nipples wrote:
hi, i just dont see any options to make it work

"| /usr/sbin/sendmail -Ac -t" works fine
but "| /usr/sbin/sendmail -O ConnectOnlyTo=smtp.external.co... -Ac -t" just wont work:
WARNING: RunAsUser for MSP ignored, check group ids (egid=10103, want=25)
can not chdir(/var/spool/clientmqueue/... Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
554 5.3.5 Local configuration error

I dont want to set up trusted users. Any work-around available?

thanks


Hi,

To clarify for myself, are you asking:

given domains abc.com, foo.com, bar.com , and anotherdomain.com

how to use your local SMTP to send mail to abc.com and foo.com but use
an external SMTP to send mail to bar.com and anotherdomain.com?

If so, then you can use the SMART_HOST define and the confCW_FILE define
in your /etc/mail/sendmail.mc file and put hosts you want processed via
local
SMTP in the file defined in confCW_FILE define. If you just have one domain
you want handled locally then you might also just put an entry like
Cwfoo.com in /etc/mailsendmail.cf. Your file names may vary depending
upon you configuration.

Hope this helps.

Sincerely,

Duane Whitty

It's really pretty easy. Look at 'mailertable'. You can set mail
to any domain you wish to go through any SMTP server you are
permitted to use. Some places won't accept my mail as even though
I"m on a STATIC IP and have been the same one for 3 years, they
consider all DSL lines as spam sources. So depending on end
destination I send some to my providers transport, and others off
to another machine I manage.

Setup is simple.

abc.com smtp:

And then just run make in /etc/mail to compile it.

Sendmail is very flexible.

Bill
--
Bill Vermillion - bv @ wjv . com
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



---------------------------------
Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2???/min with Yahoo! Messenger with Voice.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--
Bill Vermillion - bv @ wjv . com
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Can one throttle incoming speed on an 8M/448k ADSL?
    ... It is only for a few users, but the server is regularly getting ... as well as more normal spam. ... If you reject it at the SMTP conversation level, then its no load at all. ... sendmail does NOT reject SMTP conversations typically. ...
    (uk.telecom.broadband)
  • Re: Sendmail: How does one blacklist annoying spammers?
    ... ordinarily sendmail opens the SMTP ... transaction with a Greeting - if the sending agent respects the protocol ... Spam mail is often 'slammed' - it waits for nothing and simply stuffs ...
    (Fedora)
  • Re: SETUP whole new system (Part 1, the firewall SMTP relay)
    ... I'm new on sendmail in a new position as sysadmin in a branch of the ... Message delivery on the final host ... itself or to the firewall SMTP relay. ... department's network and by the firewall SMTP relay to forward the ...
    (comp.mail.sendmail)
  • Re: increase in spam and what to do about it
    ... One-to-one agreements aren't scalable with the modern internet unless you ... paid to wade through the garbage (a kind of wetware spam filter :-). ... Usenet News is not a one-to-one agreement between your organisation ... Just use SMTP but set your mail system up so that it just accepts mail from the ...
    (comp.os.vms)
  • Re: increase in spam and what to do about it
    ... One-to-one agreements aren't scalable with the modern internet unless you ... paid to wade through the garbage (a kind of wetware spam filter :-). ... Usenet News is not a one-to-one agreement between your organisation ... Just use SMTP but set your mail system up so that it just accepts mail from the ...
    (comp.os.vms)