Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 04:37 AM
H.K. Kingston-Smith
 
Posts: n/a
Default Email server problem

I have set up an email server in one of my boxes, running
Slackware 12. The box is called my_server.my_domain.net (well, not
really; these are just pseudonyms) and has an IP address xx.yy.zz.aa
(again, not really) reachable from the external world.

When an email is received from the net, the following diagnostics
get printed out to my /var/log/maillog file:

Oct 8 10:39:32 folkvang sm-mta[10995]: l98HdWwt010995:
from=<xxx@yyy.com>, size=1252, class=0, nrcpts=1,
msgid=<346742.21731.qm@web35615.mail.mud.yyy.com>, pro
to=SMTP, daemon=MTA, relay=web35615.mail.mud.yyy.com [66.163.179.154]

Oct 8 10:42:41 folkvang sm-mta[10997]: l98HdWwt010995:
to=<xxx@my_server.my_domain.net>, delay=00:03:09, xdelay=00:03:09,
mailer=esmtp, pri=121252, relay=my_server.my_domain.net. [xx.yy.zz.aa],
dsn=4.0.0, stat=Deferred: Connection timed out with
my_server.my_domain.net

The message has been received by my_server from a yahoo.com MTA.
However, it never gets delivered the local user xxx, which does exist all
right in the my_server box. The traces are obtained in my_server. Why the
"Connection timed out" message? Everything is running in my_server; how
come it can't connect to itself? The messages received are sitting in
/var/spool/mqueue, waiting to be delivered to the local users they are
being sent to. What else do I have to do in my email server configuration
to fix this? What am I missing?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 04:37 AM
Res
 
Posts: n/a
Default Re: Email server problem

On Mon, 8 Oct 2007, H.K. Kingston-Smith wrote:

>
> I have set up an email server in one of my boxes, running
>
> to=SMTP, daemon=MTA, relay=web35615.mail.mud.yyy.com [66.163.179.154]


Ok, received well so far..



> Oct 8 10:42:41 folkvang sm-mta[10997]: l98HdWwt010995:
> to=<xxx@my_server.my_domain.net>, delay=00:03:09, xdelay=00:03:09,
> mailer=esmtp, pri=121252, relay=my_server.my_domain.net. [xx.yy.zz.aa],
> dsn=4.0.0, stat=Deferred: Connection timed out with
> my_server.my_domain.net


What sendmail instances are running? Sounds like the queue runner is not
running

> come it can't connect to itself? The messages received are sitting in
> /var/spool/mqueue, waiting to be delivered to the local users they are


Are you starting like this?, dont worry if -L options differ, it's the
arguments after that, that matter.

/usr/sbin/sendmail -L sendmail -bd -q15m
/usr/sbin/sendmail -L sm-msp-queue -Ac -q15m


--

Cheers
Res
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 04:37 AM
H.K. Kingston-Smith
 
Posts: n/a
Default Re: Email server problem

On Tue, 09 Oct 2007 08:50:11 +1000, Res wrote:

> On Mon, 8 Oct 2007, H.K. Kingston-Smith wrote:
>
>
>> I have set up an email server in one of my boxes, running
>>
>> to=SMTP, daemon=MTA, relay=web35615.mail.mud.yyy.com [66.163.179.154]

>
> Ok, received well so far..
>
>
>
>> Oct 8 10:42:41 folkvang sm-mta[10997]: l98HdWwt010995:
>> to=<xxx@my_server.my_domain.net>, delay=00:03:09, xdelay=00:03:09,
>> mailer=esmtp, pri=121252, relay=my_server.my_domain.net. [xx.yy.zz.aa],
>> dsn=4.0.0, stat=Deferred: Connection timed out with
>> my_server.my_domain.net

>
> What sendmail instances are running? Sounds like the queue runner is not
> running
>
>> come it can't connect to itself? The messages received are sitting in
>> /var/spool/mqueue, waiting to be delivered to the local users they are

>
> Are you starting like this?, dont worry if -L options differ, it's the
> arguments after that, that matter.
>
> /usr/sbin/sendmail -L sendmail -bd -q15m /usr/sbin/sendmail -L
> sm-msp-queue -Ac -q15m


Sendmail is started from the rc.sendmail file shipped with
Slackware 12. According to that file (which I have not modified) sendmail
is started as follows:

/usr/sbin/sendmail -L sm-mta -bd -q25m
/usr/sbin/sendmail -L sm-msp-queue -Ac -q25m

I seem to have sorted it out but, unfortunately, I am not sure
how :-( I monkeyed a bit with sendmail.cnf and after restarting sendmail
the diagnostic line above becomes:

Oct 8 11:15:28 folkvang sm-mta[11228]: l98IAUY0011177:
to=<xxx@my_server.my_domain.net>, delay=00:04:58, xdelay=00:00:01,
mailer=local, pri=210896, dsn=2.0.0, stat=Sent

and everything works fine. The problem is, after reinstating the original
sendmail.cnf and restarting, everything still works!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 04:37 AM
Res
 
Posts: n/a
Default Re: Email server problem

On Tue, 9 Oct 2007, H.K. Kingston-Smith wrote:

> the diagnostic line above becomes:
>
> Oct 8 11:15:28 folkvang sm-mta[11228]: l98IAUY0011177:
> to=<xxx@my_server.my_domain.net>, delay=00:04:58, xdelay=00:00:01,
> mailer=local, pri=210896, dsn=2.0.0, stat=Sent
>
> and everything works fine. The problem is, after reinstating the original
> sendmail.cnf and restarting, everything still works!


LOL, well at least its all good now


--

Cheers
Res

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 04:37 AM
+Alan Hicks+
 
Posts: n/a
Default Re: Email server problem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2007-10-09, H.K. Kingston-Smith <HKK-S@yahoo.com> wrote:
> I seem to have sorted it out but, unfortunately, I am not sure
> how :-( I monkeyed a bit with sendmail.cnf and after restarting sendmail
> the diagnostic line above becomes:


That's the absolute worst feeling in the world: "It works now, but I
have no idea why." It's almost as if this was an Exchange server!

Seriously, take a look at postfix for a solid, easily configured mail
server. The documentation is great, and you can get SlackBuild scripts
for 11.0 and 12.0 from http://www.slackbuilds.org.

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHC7AlrZS6hX/gvjoRAumKAKCdL04GSZlXlohx/5mZP9w6bP3hpACfbUzK
r2xJPM31+EFJm78xfYhPHn0=
=A8q7
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 04:37 AM
Kees Theunissen
 
Posts: n/a
Default Re: Email server problem

+Alan Hicks+ wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2007-10-09, H.K. Kingston-Smith <HKK-S@yahoo.com> wrote:
>
>> I seem to have sorted it out but, unfortunately, I am not sure
>>how :-( I monkeyed a bit with sendmail.cnf and after restarting sendmail
>>the diagnostic line above becomes:

>
>
> That's the absolute worst feeling in the world: "It works now, but I
> have no idea why." It's almost as if this was an Exchange server!


"Monkeying" with the configs instead of systematic working _can_
contiribute to such a feeling. :-)

The second log line in the original posting showed that sendmail
tried to use the "relay" mailer te deliver the message. For local
delivery the "local" mailer should have been used. This indicates
that sendmail didn't recongnize it's own name as a local distination.
A second issue was that sendmail could not reach its ounw IP
address.

Mode details were not supplied and even these few details
(host name an IP number) were obfuscated.
A little more details about configuration and network environment
would have been helpfull to diagnos the problem.
Of course there should be a logical explaination. Sendmail is not
Exchange after all!

I'll make a wild guess. That might make the "absolute worst feeling
in the world" a little better.
Combineing the "not recognised own name" and the "unreachable
own IP number" I start directly thinking about a local
network using a private IP range and located behind a
masquerading/NAT-ing firewall. The host name and IP number are
the official/external name and number. At startup sendmail
tries to determine its name, and the name(s) of its network
interface(s) via the resolver library (reverse dns lookups,
/etc/hosts file). Of course a reverse lookup of a local
(masqueraded) IP number will not resolve to the external
host name. The unreachable external IP number could have
been a firewall issue.
Specifying the host name as a local detination would solve
both problems. The easy way to do this is putting the
name in /etc/mail/local-host-names. The hard way is putting
it in sendmail.mc and generating a new sendmail.cf.
Of course this won't change the firewall rules but sendmail
doesn't need to contact the external IP number anymore
once the name is recognized as a local destination.

As I said it's a wild guess, but it's the best I can do with
as little information as the OP supplied. I'm curious if it
makes any sense.


Regards,

Kees.

--
Kees Theunissen.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 04:37 AM
Res
 
Posts: n/a
Default Re: Email server problem


Well, I was wondering when the spammers would get around to it.

On Tue, 9 Oct 2007, +Alan Hicks+ wrote:

> Seriously, take a look at postfix for a solid, easily configured mail
> server. The documentation is great, and you can get SlackBuild scripts


For that mater, look at Exim and Qmail as well.

If you are going to spam that an MTA is better, how about you prove why
its better, somthing nobody has been able to do yet, since postfix
basically copies everything sendmail does anyway, also postfixes
implimentation of the sendmail (look-ahead|milter-ahead|smd-sav) milter,
fails dismally under heavy use.


--

Cheers
Res
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 04:37 AM
Keith Keller
 
Posts: n/a
Default Re: Email server problem

On 2007-10-09, Res <res@ausics.net> wrote:
>
> Well, I was wondering when the spammers would get around to it.
>
> On Tue, 9 Oct 2007, +Alan Hicks+ wrote:
>
>> Seriously, take a look at postfix for a solid, easily configured mail
>> server. The documentation is great, and you can get SlackBuild scripts

>
> For that mater, look at Exim and Qmail as well.
>
> If you are going to spam that an MTA is better,


I see no mention in Alan's post about postfix being better than any
other MTA.

Qmail is an utter disaster from a configuration and maintenance
standpoint. I'd suggest against it for anyone except my enemies.

--keith

--
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 04:37 AM
Res
 
Posts: n/a
Default Re: Email server problem

On Tue, 9 Oct 2007, Keith Keller wrote:

>> If you are going to spam that an MTA is better,

>
> I see no mention in Alan's post about postfix being better than any
> other MTA.
>


IMHO thats what he was doing, the OP says he is using MTA a, why
should anyone say 'check out MTA b', its like posting on this list and
saying we should check out SuSE or fuckdora.

> Qmail is an utter disaster from a configuration and maintenance
> standpoint. I'd suggest against it for anyone except my enemies.


on its own, yes, but it is powerfull with a few patches and has its place,
especially for those in large hosting arenas or ISP's with millions and
millions of customers, Qmail/Vpopmail combo is far superior performer
then Sendmail/Cyrus(2) and postfix's implimentation, disastor recovery is
so simple my 12yo nephew could do it.

Its only set back in djb is an arrogant prick , and has not maintained
it, its reliance upon others to supply modern day patching, many large
ISP/ASP/OSP's around the world still use it, and probably always will.
I don't use B.Shupps or JMS's patches, I took netqmail and got the
other patches I want that do much the same sort of thing, and work from
there, and remember, when djb wrote qmail, spam was something you went to
a supermarket to buy and eat.

--

Cheers
Res
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 04:37 AM
Keith Keller
 
Posts: n/a
Default Re: Email server problem

On 2007-10-10, Res <res@ausics.net> wrote:
> On Tue, 9 Oct 2007, Keith Keller wrote:
>
>>> If you are going to spam that an MTA is better,

>>
>> I see no mention in Alan's post about postfix being better than any
>> other MTA.
>>

>
> IMHO thats what he was doing, the OP says he is using MTA a, why
> should anyone say 'check out MTA b', its like posting on this list and
> saying we should check out SuSE or fuckdora.


Not really, but you're welcome to your own opinion. Some software is
more suited to certain environments. Some people just grok some
software better than others. I certainly wouldn't claim that postfix is
better than sendmail (or vice versa), but I understand postfix better
than sendmail. Other admins understand sendmail better. The person who
said he's using MTA a might try MTA b and decide for himself which he
prefers.

--keith



--
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:17 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632