@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> use a smarthost
<1> I tried setting a flag in rc.conf
<1> sendmail_smarthost="smtprelay1.telia.com" without any luck. Don't know where the mail stucks
<1> sub: Isn't that what I've tried?
<0> no
<1> Where do I set a smarthost then?
<0> http://megawatt.resistor.net/~sm/sendmail/
<1> Thanks
<1> Do I put define(`SMART_HOST', `mail.isp.net') in freebsd.submit.mc or freebsd.mc ?
<1> sub: Any idea?
<0> freebsd.mc or whatever file you are using
<1> I get permission denied on sendmail.cf :/ sudo /usr/share/sendmail/cf/m4/cf.m4 freebsd.mc > sendmail.cf
<2> su then do it
<1> Why doesn't sudo work?
<2> maybe it's the >
<2> try sudo .... > ~/sendmail.cf



<1> lwh: What? Do you know what you're talking about? ~/ means home dir
<3> zapher are you trying to execute the mc?
<1> stolpskot: No, I'm trying to convert the .mc to a .cf
<1> Anybody?
<4> zapher: if you installed sendmail from ports on a FreeBSD box, cf/README should be in /usr/local/share/sendmail/cf/README
<4> zapher It also explains how to properly configure sendmail. By the way, freebsd usually also has sendmail installed in the base system (unless you'd choosen not to)
<4> zapher: for the "stock" sendmail (that was installed with the system) - you should use /etc/mail - there is a Makefile. "make cf" in that directory compiles the .mc files specified in /etc/make.conf
<4> "compiles" - I mean converts it into .cf file
<4> (using m4 )
<4> For that in /etc/make.conf you can add SENDMAIL_MC=/etc/mail/freebsd.mc
<4> or whatever .mc file you want to use
<0> msk, are you awake?
<3> zapher: you could just search your .cf for Smart (capital S), that should direct you to the smarthost section. How about that? Unless you need to make other changes too, that should suffice.
<1> StR: Great, thanks
<1> stolpskot: Yeah, I suppose
<1> StR: U there right now?
<5> you misspelled "you"
<1> felix: :D
<1> felix: Do you know the difference between sendmail.cf and sendmail_submit.cf?
<5> yes. sendmail_submit.cf is used by the instance of sendmail that listens on port 587
<5> used only for local submission of mail into the queue
<1> So if I want to add a smart_host I would edit sendmail.cf and not sendmail_submit.cf?
<5> you'd do it for both, if you want all your outbound mail to be relayed via that host.
<1> felix: Oh, ok. So I have to specify both the sendmail_mc and sendmail_submit_mc in /etc/make.conf then?
<5> it might be a safe bet
<1> Okey. Wish me luck!
<1> Both .cf built fine. Now let's test this
<1> Nothing :(
<1> How can I test sendmail with the command line?
<5> test which function?
<1> Just testing to send a mail. I want to see if it's working
<5> echo "hello" | sendmail recipient@example.org
<1> Why is the default path /usr/sbin/sendmail -i -t ?
<6> what default path?
<1> sendmail default path
<5> a path doesn't include commandline options.
<1> Anyways. Looks like my <from> address can't be resolved. No wonder when it uses my hostname.
<5> what's your machine's hostname?
<1> filserv.localhost
<5> that makes no sense.
<5> "localhost" can ONLY be used by itself.
<5> ANYTHING appended or prepended to "localhost" makes it an invalid hostname.
<5> use a real hostname. possibly the one your ip address resolves to.
<1> Well, I have zapher.dyndns.com to my router. And then I redirect all port 80 to filserv
<5> okay. then use zapher.dyndns.com as the default hostname within sendmail (override whatever your system uses)
<1> Okey. That sounds reasonable
<1> I would have used zapher.dynddns.com if I had the server in a DMZ
<1> So how would I go about this? And where can I find all the config-values?
<1> Sorry, my hostname was filserv.holmqvist.local
<1> Hmm, how do I empty mailq?
<1> felix: I changed my hostname to zapher.dyndns.com, now I just get messages stuck in mailq
<1> Wow, I managed to get my ip blacklisted :/
<6> excellent.
<1> :D
<1> It blacklisted me when I changed my hostname and sent again
<7> always good.
<1> This is too tricky :/
<1> All my mail has to go through smtprelay1.telia.com, so I add a smart_host. Then it can't resolve my hostname, so I change it to zapher.dyndns.com and then I get a 550 error?
<6> sounds like telia doesn't like its customers.
<1> :(



<1> I don't know what this is caused by. I get "blacklisted ip" but I can email properly from my normal account
<3> zapher: try mail1.telia.com
<3> I got problems with smtprelay1 some time ago and switchet to mail1 instead, works good
<1> stolpskot: Really? Ok. mail1.telia.com is to be shutdown afair
<1> afaik*
<3> zapher: I hope not, most of my customers are using that one
<3> zapher: so that was the error when you tried smtprelay1?
<3> s/that/what =)
<1> stolpskot: That hostname is being changed to mailout@telia.com
<1> mailout.telia.com I mean
<1> stolpskot: Right now it can't resolve my address. No wonder.. zapher@zapher.holmqvist.local is kinda hard to resolve :)
<6> why are you sending with that?
<8> morning
<7> hey msk
<7> twkm: been a while, hi there. :)
<6> hello kneer0w.
<7> twkm: you wouldn't remember, but you've saved my *** quite a few times in #bash on fn years ago
<6> excellent.
<7> in fact, i can honestly say that I'm probably a much better scripter because of the code snippets you've given me (duly jotted down in ~/scribble.pad)
<7> ;D
<6> eeek.
<7> well, given .. more like helped with.
<1> twkm: It takes the hostname by defualt
<6> zapher: so fix it.
<8> your hostname is "zapher.holmqvist.local"?
<1> twkm: How do I set a from address then?
<1> msk: Yes
<8> that won't resolve anywhere out here
<6> zapher: i suggest using a proper mua, but within sendmail masquerading or generics come to mind.
<1> Okey.. Because basically all I want to do it to be able to send via mail via PHP
<1> And in ordet for that to work I have to have sendmail working
<6> and you **** at php?
<6> php is quite capable of setting the correct envelope and headers.
<1> Not really, no?
<1> twkm: I know that. But nothing comes out. So I have to see where in the chain things go wrong
<8> why is that your hostname?
<1> Didn't think of anything at the time, so I just took that one
<0> Hi msk
<3> zapher: did you use a php app to send mail?
<1> stolpskot: Yep
<1> stolpskot: Well, not when I tested smart_host and all that
<9> anyone know how to prevent sendmail from accepting forged mail that uses my domain? I'm already using access.db to reject invalid users.
<0> What is forged email?
<9> mail that I receive that appears to be from an invalid user at my domain
<6> sendmail will validate the envelope sender if it is local. the headers in the message are not, of course.
<0> There you go
<1> msk: What do you think I should name my server then?
<9> so there is no way to validate non-local envelopes?
<0> see sid-milter
<8> zapher: something that will actually resolve from outside, perhaps?
<0> msk, do you have a few minutes?
<8> sub: yeah, though i'm starting to get ready for work, what's up?
<0> What STAT do you return for NONPART in DK?
<0> is it STAT_SYNTAX?
<8> there isn't one
<1> msk: Well, I have a dyndns pointing at my router
<0> Then a NONPART would not trigger an error?
<8> zapher: that has nothing to do with what name your machine uses to send mail or do other things
<8> "NONPART" doesn't have any meaning in DK, unless Yahoo! added it
<0> I mean you should not reject on NONPART, right?
<0> if ther eis no TXT record, that is and no signature?
<1> msk: Well. I'm trying to figure out how to make this work. Should I name it to filserv.zapher.dyndns.com ?
<8> zapher: how do you want people to reply to the mail you're sending?
<1> Well, not really
<8> sub: right, it shouldn't reject under those circumstances
<0> and if it does?:)
<8> then it's a bug. can you reproduce it?
<0> I guess I'll talk to you after you had your coffee
<0> Yes, I have reproduced it
<8> ok yeah, i'll ask about it when i get to work
<8> or mail me reproduction instructions
<1> sub: Haha :) Spammer


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #sendmail
or
Go to some related logs:

Server: Msg 16916
gas petroliem
#politics
#politics
#windows
WHICH MOVIE ABOUT A TV NEWS SHOW WON PETER FINCH A POSTHUMOUS OSCAR
tablet buttons disabled
#politics
#worldcup
#beginner



Home  |  disclaimer  |  contact  |  submit quotes