Zum Inhalt springen

sendmail funzt net


MFBASSIST

Empfohlene Beiträge

Hi nochmal,

Also ich will mit sendmail mails über einen Linux Proxy schicken (anderer Rechner). Der wiederum sendet die Mails an einen Exchange Server. Meine sendmail.cf sieht so aus:

V7/Berkeley

Fw/etc/mail/sendmail.cw

DSPROXY

DNsmtp

DHPROXY

DM

CLroot

CEroot

Troot

Tdaemon

Tuucp

Tmajordomo

Kmailertable hash /etc/mail/mailertable

CD

CO @ %

C..

C[[

Kdequote dequote

CPREDIRECT

De$j Sendmail $v/$Z ready at $b

DlFrom $g $d

DnMAILER-DAEMON

Do.:%@!^/[]

Dq$?x$x <$g>$|$g$.

DZ8.8.7

Kvirtuser hash /etc/mail/virtusertable

OGFalse

O SevenBitInput=False

O EightBitMode=pass8

O AliasWait=10

O AliasFile=/etc/aliases

O MinFreeBlocks=100

O BlankSub=.

O HoldExpensive=True

O TempFileMode=0600

O HelpFile=/usr/lib/sendmail.hf

O SendMimeErrors=True

O ForwardPath=$z/.forward.$w:$z/.forward

O ConnectionCacheSize=2

O ConnectionCacheTimeout=5m

O UseErrorsTo=False

O CheckAliases=False

O OldStyleHeaders=True

O PrivacyOptions=authwarnings

O QueueDirectory=/var/spool/mqueue

O Timeout.queuereturn=5d

O Timeout.queuewarn=4h

O SuperSafe=True

O StatusFile=/var/log/sendmail.st

O DefaultUser=mail:mail

O DefaultCharSet=iso-8859-1

O SmtpGreetingMessage=$j Sendmail $v/$Z; $b

O UnixFromLine=From $g $d

O OperatorChars=.:%@!^/[]+

Pfirst-class=0

Pspecial-delivery=100

Plist=-30

Pbulk=-60

Pjunk=-100

Tmajordomo bin

H?P?Return-Path: <$g>

HReceived: $?sfrom $s $.$?_($?s$|from $.$_)

$.by $j ($v/$Z)$?r with $r$. id $i$?u

for $u; $|;

$.$b

H?D?Resent-Date: $a

H?D?Date: $a

H?F?Resent-From: $?x$x <$g>$|$g$.

H?F?From: $?x$x <$g>$|$g$.

H?x?Full-Name: $x

H?M?Resent-Message-Id: <$t.$i@$j>

H?M?Message-Id: <$t.$i@$j>

S4

R$* <@> $@ handle <> and list:;

R$* < @ $+ . > $* $1 < @ $2 > $3

R$* < @ *LOCAL* > $* $1 < @ $j > $2

R$* < $+ > $* $1 $2 $3 defocus

R@ $+ : @ $+ : $+ @ $1 , @ $2 : $3 <route-addr> canonical

R@ $* $@ @ $1 ... and exit

R$+ @ $- . UUCP $2!$1 u@h.UUCP => h!u

R$+ % $=w @ $=w $1 @ $2 u%host@host => u@host

S97

R$* $: $>3 $1

R$* $@ $>0 $1

S5

R$+ + * $#local $@ $&h $: $1

R$+ + $* $#local $@ + $2 $: $1 + *

R$+ $: <> $1

R< > $+ $: < $H > $1 try hub

R< > $+ $: < $R > $1 try relay

R< > $+ $: < > < $1 $(dequote "" $&h $) > nope, restore +detail

R< > < $+ + $* > $* < > < $1 > + $2 $3 find the user part

R< > < $+ > + $* $#local $@ $2 $: @ $1 strip the extra +

R< > < $+ > $@ $1 no +detail

R$+ $: $1 $(dequote "" $&h $) add +detail back in

R< local : $* > $* $: $>95 < local : $1 > $2 no host extension

R< error : $* > $* $: $>95 < error : $1 > $2 no host extension

R< $- : $+ > $+ $: $>95 < $1 : $2 > $3 < @ $2 >

R< $+ > $+ $@ $>95 < $1 > $2 < @ $1 >

S95

R< > $* $@ $1 strip off null relay

R< error : $- $+ > $* $#error $@ $( dequote $1 $) $: $2

R< local : $* > $* $>CanonLocal < $1 > $2

R< $- : $+ @ $+ > $*<$*>$* $# $1 $@ $3 $: $2<@$3> use literal user

R< $- : $+ > $* $# $1 $@ $2 $: $3 try qualified mailer

R< $=w > $* $@ $2 delete local host

R< $+ > $* $#$N $@ $1 $: $2 use unqualified mailer

SCanonLocal

R< $* > $* < @ $* . > $: < $1 > $2 < @ $3 >

R< > $* < @ $* > $* $#local $@ $1@$2 $: $1

R< > $+ $#local $@ $1 $: $1

R< $+ @ $+ > $* < @ $* > $: < $1 > $3 < @ $4 >

R< $+ > $* <@ $* > $* $#local $@ $2@$3 $: $1

R< $+ > $* $#local $@ $2 $: $1

S93

R$=E < @ *LOCAL* > $@ $1 < @ $j . > leave exposed

R$=E < @ $=M . > $@ $1 < @ $2 . >

R$=E < @ $=w . > $@ $1 < @ $2 . >

R$* < @ $=M . > $* $: $1 < @ $2 . @ $M > $3 convert masqueraded doms

R$* < @ $=w . > $* $: $1 < @ $2 . @ $M > $3

R$* < @ *LOCAL* > $* $: $1 < @ $j . @ $M > $2

R$* < @ $+ @ > $* $: $1 < @ $2 > $3 $M is null

R$* < @ $+ @ $+ > $* $: $1 < @ $3 . > $4 $M is not null

S94

R$* < @ *LOCAL* > $* $: $1 < @ $j . > $2

S98

R$* < @ $+ .REDIRECT. > $: $1 < @ $2 . REDIRECT . > < ${opMode} >

R$* < @ $+ .REDIRECT. > <i> $: $1 < @ $2 . REDIRECT. >

R$* < @ $+ .REDIRECT. > < $- > $# error $@ 5.1.1 $: "551 User has moved; please try " <$1@$2>

Scheck_mail

R<$*@$=w> $@ ok shortcut

R<> $: <$n @ $(dequote "" $&{client_name} $) >

R<$*@$*.> <$1@$2>

R$* $: $>3 $1 canonify

R$- $@ ok

R$*<@$->$* $#error $@ 5.1.8 $: 551 invalid host name $2, check your configuration.

R$* $:$1 $| $1

R$* $| $*<@$*.>$* $: $1 $| $2<@$3>$4

R$* $| $*<@$*>$* $: $1 $| $>junk $2<@$3>

R$* $| $*<@$*@JUNK>$* $#error $@ 5.7.1 $: $3

R$* $| $* $: $1

S10

R<@> $n errors to mailer-daemon

R$+ $: $>50 $1 add local domain if needed

R$* $: $>94 $1 do masquerading

S20

R$+ < @ $* > $: $1 strip host part

S30

R<@> $n errors to mailer-daemon

R$+ $: $>50 $1 add local domain if needed

R$* $: $>93 $1 do masquerading

S40

R$+ $: $>50 $1 add local domain if needed

#R$* $: $>93 $1 do all-masquerading

S50

R$* < @ $* > $* $@ $1 < @ $2 > $3 already fully qualified

R$+ $@ $1 < @ *LOCAL* > add local qualification

S11

R$+ $: $>51 $1 sender/recipient common

R$* :; <@> $@ list:; special case

R$* $: $>61 $1 qualify unqual'ed names

R$+ $: $>94 $1 do masquerading

S21

R$+ $: $>51 $1 sender/recipient common

R$+ $: $>61 $1 qualify unqual'ed names

S31

R$+ $: $>51 $1 sender/recipient common

R:; <@> $@ list:; special case

R$* <@> $* $@ $1 <@> $2 pass null host through

R< @ $* > $* $@ < @ $1 > $2 pass route-addr through

R$* $: $>61 $1 qualify unqual'ed names

R$+ $: $>93 $1 do masquerading

S51

R< @ $+ > $* $@ < @ $1 > $2 resolve <route-addr>

R$+ < @ $+ .UUCP. > $: < $2 ! > $1 convert to UUCP form

R$+ < @ $* > $* $@ $1 < @ $2 > $3 not UUCP form

R< $&h ! > $- ! $+ $@ $2 < @ $1 .UUCP. >

R< $&h ! > $-.$+ ! $+ $@ $3 < @ $1.$2 >

R< $&h ! > $+ $@ $1 < @ $&h .UUCP. >

R< $+ ! > $+ $: $1 ! $2 < @ $Y > use UUCP_RELAY

R$+ < @ $+ : $+ > $@ $1 < @ $3 > strip mailer: part

R$+ < @ > $: $1 < @ *LOCAL* > if no UUCP_RELAY

61

R$* < @ $* > $* $@ $1 < @ $2 > $3 already fully qualified

R$+ $@ $1 < @ *LOCAL* > add local qualification

S71

R$+ $: $>61 $1

R$+ $: $>93 $1

S90

R$* <$- . $+ > $* $: $1$2 < $(mailertable .$3 $@ $1$2 $@ $2 $) > $4

R$* <$~[ : $+ > $* $>95 < $2 : $3 > $4 check -- resolved?

R$* < . $+ > $* $@ $>90 $1 . <$2> $3 no -- strip & try again

R$* < $* > $* $: < $(mailertable . $@ $1$2 $) > $3 try "."

R< $~[ : $+ > $* $>95 < $1 : $2 > $3 "." found?

R< $* > $* $@ $2 no mailertable match

Sjunk

SjunkIP

S0

R$*<@$=V> $#virtual $@ $2 $: $1

R$*<@$=V.> $#virtual $@ $2 $: $1

R$* $: $>Parse0 $1 initial parsing

R$* $: $>98 $1 handle local hacks

R$* $: $>Parse1 $1 final parsing

SParse0

R<@> $@ <@> special case error msgs

R$* : $* ; <@> $#error $@ 5.1.3 $: "List:; syntax illegal for recipient addresses"

R<@ $+> $#error $@ 5.1.3 $: "User address required"

R$* $: <> $1

R<> $* < @ [ $+ ] > $* $1 < @ [ $2 ] > $3

R<> $* <$* : $* > $* $#error $@ 5.1.3 $: "Colon illegal in host name part"

R<> $* $1

R$* < @ . $* > $* $#error $@ 5.1.2 $: "Invalid host name"

R$* < @ $* .. $* > $* $#error $@ 5.1.2 $: "Invalid host name"

R$* < @ [ $+ ] > $* $: $>98 $1 < @ [ $2 ] > $3 numeric internet spec

R$* < @ [ $+ ] > $* $#esmtp $@ [$2] $: $1 < @ [$2] > $3 still numeric: send

R$* < @ > $* $@ $>Parse0 $>3 $1 user@ => user

R$* < @ > $* $@ $>Parse0 $>3 $1 user@ => user

R< @ $=w . > : $* $@ $>Parse0 $>3 $2 @here:... -> ...

R$- < @ $=w . > $: $(dequote $1 $) < @ $2 . > dequote "foo"@here

R< @ $+ > $#error $@ 5.1.3 $: "User address required"

R$* $=O $* < @ $=w . > $@ $>Parse0 $>3 $1 $2 $3 ...@here -> ...

R$- $: $(dequote $1 $) < @ *LOCAL* > dequote "foo"

R< @ *LOCAL* > $#error $@ 5.1.3 $: "User address required"

R$* $=O $* < @ *LOCAL* >

$@ $>Parse0 $>3 $1 $2 $3 ...@*LOCAL* -> ...

R$* < @ *LOCAL* > $: $1

SParse1

R$+ < @ $=w . > $: < $(virtuser $1 @ $2 $@ $1 $: @ $) > $1 < @ $2 . >

R<@> $+ + $* < @ $* . >

$: < $(virtuser $1 + * @ $3 $@ $1 $: @ $) > $1 + $2 < @ $3 . >

R<@> $+ + $* < @ $* . >

$: < $(virtuser $1 @ $3 $@ $1 $: @ $) > $1 + $2 < @ $3 . >

Link zu diesem Kommentar
Auf anderen Seiten teilen

R<@> $+ < @ $+ . > $: < $(virtuser @ $2 $@ $1 $: @ $) > $1 < @ $2 . >

R<@> $+ $: $1

R< error : $- $+ > $* $#error $@ $( dequote $1 $) $: $2

R< $+ > $+ < @ $+ > $: $>97 $1

R$=L < @ $=w . > $#local $: @ $1 special local names

R$+ < @ $=w . > $#local $: $1 regular local name

R$* <@ $+ > $* $: < $2 > $1 < @ $2 > $3 extract host name

R< $+ . > $* $: < $1 > $2 strip trailing dot

R< $+ > $* $: < $(mailertable $1 $) > $2 lookup

R< $~[ : $+ > $* $>95 < $1 : $2 > $3 check -- resolved?

R< $+ > $* $: $>90 <$1> $2 try domain

R$* < @ $* > $* $: $>95 < $S > $1 < @ $2 > $3 glue on smarthost name

R$* < @$* > $* $#esmtp $@ $2 $: $1 < @ $2 > $3 user@host.domain

R$+ $: $(dequote $1 $) strip quotes

R$+ $=O $+ $@ $>97 $1 $2 $3 try again

R$=L $#local $: @ $1 special local names

R$+ $#local $: $1 regular local names

R$* <@ $+ > $* $: < $2 > $1 < @ $2 > $3 extract host name

R< $+ . > $* $: < $1 > $2 strip trailing dot

R< $+ > $* $: < $(mailertable $1 $) > $2 lookup

R< $~[ : $+ > $* $>95 < $1 : $2 > $3 check -- resolved?

R< $+ > $* $: $>90 <$1> $2 try domain

S3

R$@ $@ <@>

R$* $: $1 <@> mark addresses

R$* < $* > $* <@> $: $1 < $2 > $3 unmark <addr>

R@ $* <@> $: @ $1 unmark @host:...

R$* :: $* <@> $: $1 :: $2 unmark node::addr

R:include: $* <@> $: :include: $1 unmark :include:...

R$* [ $* : $* ] <@> $: $1 [ $2 : $3 ] unmark IPv6 addrs

R$* : $* [ $* ] $: $1 : $2 [ $3 ] <@> remark if leading colon

R$* : $* <@> $: $2 strip colon if marked

R$* <@> $: $1 unmark

R$* ; $1 strip trailing semi

R$* < $* ; > $1 < $2 > bogus bracketed semi

R$@ $@ :; <@>

R$* $: < $1 > housekeeping <>

R$+ < $* > < $2 > strip excess on left

R< $* > $+ < $1 > strip excess on right

#R<> $@ < @ > MAIL FROM:<> case

R< $+ > $: $1 remove housekeeping <>

R@ $+ , $+ @ $1 : $2 change all "," to ":"

R@ $+ : $+ $@ $>96 < @$1 > : $2 handle <route-addr>

R $+ : $* ; @ $+ $@ $>96 $1 : $2 ; < @ $3 > list syntax

R $+ : $* ; $@ $1 : $2; list syntax

R$+ @ $+ $: $1 < @ $2 > focus on domain

R$+ < $+ @ $+ > $1 $2 < @ $3 > move gaze right

R$+ < @ $+ > $@ $>96 $1 < @ $2 > already canonical

R$* < @ $* : $* > $* $1 < @ $2 $3 > $4 nix colons in addrs

R$- ! $+ $@ $>96 $2 < @ $1 .UUCP > resolve uucp names

R$+ . $- ! $+ $@ $>96 $3 < @ $1 . $2 > domain uucps

R$+ ! $+ $@ $>96 $2 < @ $1 .UUCP > uucp subdomains

R$* % $* $1 @ $2 First make them all @s.

R$* @ $* @ $* $1 % $2 @ $3 Undo all but the last.

R$* @ $* $@ $>96 $1 < @ $2 > Insert < > and finish

R$* $@ $>96 $1

S96

R$* < @ localhost > $* $: $1 < @ $j . > $2 no domain at all

R$* < @ localhost . $m > $* $: $1 < @ $j . > $2 local domain

R$* < @ [ $+ ] > $* $: $1 < @@ [ $2 ] > $3 mark [a.b.c.d]

R$* < @@ $=w > $* $: $1 < @ $j . > $3 self-literal

R$* < @@ $+ > $* $@ $1 < @ $2 > $3 canon IP addr

R$* < @ $=w > $* $: $1 < @ $2 . > $3

R$* < @ $=V > $* $: $1 < @ $2 . > $3

R$* < @ $* $=P > $* $: $1 < @ $2 $3 . > $4

R$* < @ $* . . > $* $1 < @ $2 . > $3

R$* < @ $j > $* $: $1 < @ $j . > $2

Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30, R=20/40,

T=DNS/RFC822/X-Unix,

A=procmail -Y -a $h -d $u

Mprog, P=/bin/sh, F=lsDFMoqu9, S=10/30, R=20/40, D=$z:/,

T=X-Unix,

A=sh -c $u

Mvirtual, P=/usr/lib/linuxconf/lib/vdeliver, F=lsDFMShP, S=10, R=20/40,

A=vdeliver $u $h

Mfax, P=/usr/lib/linuxconf/lib/mail2fax, F=lsDFMShP, S=10, R=20/40,

A=mail2fax $u $h

Muucp, P=/usr/bin/uux, F=DFMhuU, S=12, R=22/42, M=200000,

A=uux - -a$f -gC $h!rmail ($u)

Muucp-old, P=/usr/bin/uux, F=DFMhuU, S=12, R=22/42, M=200000,

A=uux - -a$f -gC $h!rmail ($u)

Msuucp, P=/usr/bin/uux, F=mDFMhuU, S=12, R=22/42, M=200000,

A=uux - -a$f -gC $h!rmail ($u)

Muucp-new, P=/usr/bin/uux, F=mDFMhuU, S=12, R=22/42, M=200000,

A=uux - -a$f -gC $h!rmail ($u)

Muucp-dom, P=/usr/bin/uux, F=mDFMhu, S=52/31, R=21, M=200000,

A=uux - -a$f -gC $h!rmail ($u)

Muucp-uudom, P=/usr/bin/uux, F=mDFMhu, S=72/31, R=21, M=200000,

A=uux - -a$f -gC $h!rmail ($u)

Msmtp, P=[iPC], F=mDFMuX, S=11/31, R=21, E=\r\n, L=990,

T=DNS/RFC822/SMTP,

A=IPC $h

Mesmtp, P=[iPC], F=mDFMuXa, S=11/31, R=21, E=\r\n, L=990,

T=DNS/RFC822/SMTP,

A=IPC $h

Msmtp8, P=[iPC], F=mDFMuX8, S=11/31, R=21, E=\r\n, L=990,

T=DNS/RFC822/SMTP,

A=IPC $h

Mrelay, P=[iPC], F=mDFMuXa8, S=11/31, R=61, E=\r\n, L=2040,

T=DNS/RFC822/SMTP,

A=IPC $h

Mesmtprem, P=[iPC], F=emDFMuXa, S=11/31, R=21, E=\r\n, L=990,

T=DNS/RFC822/SMTP,

A=IPC $h

O MatchGECOS=False

DRPROXY

O PostMasterCopy=fandel.martin@bitburg-pruem.de

Ich hatte die über m4 makros gemacht. Leider funktioniert die nicht so ganz. :-(

Link zu diesem Kommentar
Auf anderen Seiten teilen

Dein Kommentar

Du kannst jetzt schreiben und Dich später registrieren. Wenn Du ein Konto hast, melde Dich jetzt an, um unter Deinem Benutzernamen zu schreiben.

Gast
Auf dieses Thema antworten...

×   Du hast formatierten Text eingefügt.   Formatierung wiederherstellen

  Nur 75 Emojis sind erlaubt.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Editor leeren

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...