PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > Sendmail Smarthost Relaying
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Sendmail Smarthost Relaying

Réponse
 
LinkBack Outils de la discussion
Vieux 29/01/2007, 16h29   #1
Nick Pelfort
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Sendmail Smarthost Relaying

Greetings,

Environment:

Two openbsd 4.0 server environment -- main.mail.server in DMZ, another in
firewalled LAN. firewall denies SMTP from LAN except to DMZ mail server.
Sendmail 8.13.8 on both servers. No issues sending mails from main DMZ
mail server to any address.
I wish to blindly forward all emails sent from LAN server to the main DMZ
server which will handle forwarding.

Server names and email addresses (aside from mine) have been sanitized, but
are correct in my environment.

Added

define(`SMART_HOST', `main.dmz.mailserver')dnl

to the LAN mailserver .mc file, generated cf and kill -HUP sendmail.

testing sending mail outside the network using

user@lan% echo "test" | mail -v -s test
nick.pelfort@cipherintegrations.com

and receive the following output:


nick.pelfort@cipherintegrations.com... Connecting to [127.0.0.1] via
relay...
220 mail.lan.com ESMTP Sendmail 8.13.8/8.13.8; Mon, 29 Jan 2007
11:10:03 -0500 (EST)
>>> EHLO dmz.server.com

250-mail.lan.com hello localhost.lan.com [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250
>>> VERB

250 2.0.0 Verbose mode
>>> MAIL From:<user@mail.lan.com> SIZE=60

250 2.1.0 <user@mail.lan.com>... Sender ok
>>> RCPT To:<nick.pelfort@cipherintegrations.com>
>>> DATA

250 2.1.5 <nick.pelfort@cipherintegrations.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .

050 <nick.pelfort@cipherintegrations.com>... Connecting to
mail.cipherintegrations.com. via esmtp...
050 <nick.pelfort@cipherintegrations.com>... Deferred: Connection refused by
mail.cipherintegrations.com.
250 2.0.0 l0TGA3vP013035 Message accepted for delivery
nick.pelfort@cipherintegrations.com... Sent (l0TGA3vP013035 Message accepted
for delivery)
Closing connection to [127.0.0.1]
>>> QUIT

221 2.0.0 mail.lan.com closing connection




Apparantly, the mail.lan.com server attempts to deliver the mail directly,
which is forbidden by the firewall. This places the mail in the sendmail
queue:


# sendmail -bp
/var/spool/mqueue (2 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
l0TGA0IP016397 5 Mon Jan 29 11:10 <user@mail.lan.com>
(Deferred: Connection refused by
mail.cipherintegrations.com.)
<nick.pelfort@cipherintegrations.com>



When root issues a "sendmail -q" command, the mail is properly forwarded to
the main.dmz.mailserver and is delivered. Where have I gone wrong?


Thanks,
Nick Pelfort
nick.pelfort@cipherintegrations.com


The following is my sendmail.mc file:

divert(0)dnl
OSTYPE(openbsd)dnl
FEATURE(`relay_local_from')
define(`SMART_HOST', `main.cipherpayments.com')dnl
MAILER(smtp)dnl



  Réponse avec citation
Vieux 30/01/2007, 20h46   #2
Nick Pelfort
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sendmail Smarthost Relaying

Problem solved.

Smarthost entry not properly configured in /etc/submit.cf


  Réponse avec citation
Vieux 30/01/2007, 21h43   #3
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sendmail Smarthost Relaying

In article <45bfaeab$0$16696$4c368faf@roadrunner.com> "Nick Pelfort"
<nick.pelfort@cipherintegrations.com> writes:

>Problem solved.
>
>Smarthost entry not properly configured in /etc/submit.cf


You don't normally configure a smarthost there. Your problem sounded
more like failure to restart the daemon, since when it accepted messages
from the MSP (controlled by submit.cf) it was unaware of the smarthost
setting, but when you ran 'sendmail -q' (which reads sendmail.cf at that
point) it worked.

--Per Hedeland
per@hedeland.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h09.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12530 seconds with 11 queries