Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

postfix+sasl

2 views
Skip to first unread message

pawel....@gazeta.pl

unread,
Aug 11, 2004, 7:36:39 AM8/11/04
to
Mam problem z uruchomieniem posfixa+SASL, przeczytałem chyba juz wszystko
HOW-TO i FAQ i dalej nic
bez autoryzacji działał postix OK, jak uruchomiłem autoryzację, to sieci
lokalnej wysyła bez problemu, przyjmuje też pocztę, niestety przy wysyłaniu
jest błąd. Pewnie coś mam nie ustawione, albo cos nie działa :)

Aug 11 13:17:10 wyszkow postfix/qmgr[29538]: 0011F774FD:
to=<pawel....@gazeta.pl>, relay=none, delay=2144, status=deferred (delivery
temporarily suspended: transport is unavailable)
Aug 11 13:18:10 wyszkow postfix/qmgr[29538]: warning: connect to transport
smtp: Connection refused

a i jeszcze cos takiego
ug 11 13:03:08 wyszkow postfix/smtpd[23187]: >>> CHECKING RECIPIENT MAPS <<<
Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: ctable_locate: leave existing
entry key pawel....@gazeta.pl
Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: maps_find:
recipient_canonical_maps: pawel....@gazeta.pl: not found
Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: match_string: gazeta.pl ~?
poczta.gnu.com.pl
Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: match_string: gazeta.pl ~?
localhost.gnu.com.pl
Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: match_string: gazeta.pl ~?
localhost
Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: match_string: gazeta.pl ~?
gnu.com.pl
Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: match_list_match: gazeta.pl: no
match
Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: maps_find:
recipient_canonical_maps: @gazeta.pl: not found
Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: mail_addr_find:
pawel....@gazeta.pl -> (not found)
Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: maps_find: canonical_maps:
pawel....@gazeta.pl: not found

moj plik main.cf wygląda tak

command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
default_privs = nobody
myhostname = poczta.gnu.com.pl
mydomain = gnu.com.pl
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
local_recipient_maps =
mynetworks=192.168.1.0/24, 127.0.0.0/8, 192.168.0.0/24
relay_domains = $mydestination
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mail_name = Qmail ver 2.4
smtpd_banner = $myhostname ESMTP $mail_name We block/report all spam.
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = no
append_dot_mydomain = no
sender_canonical_maps=hash:/etc/postfix/sender_canonical
smtpd_sasl_auth_enable=yes
broken_sasl_auth_clients=yes
smtpd_sasl_security_options=noanonymous
smtpd_reception_restrictions=permit_sasl_authenticated
smtpd_sasl_password_maps=hash:/etc/postfix/null
smtp_sasl_auth_enable=yes
defer_transport=smtp

moj master.cf

# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n n n - - smtpd -v
#-o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix n n n - - smtp
relay unix n n n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# See the pipe(8) man page for information about ${recipient} and
# other message envelope options.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient

polecenie netstat pokazuje
netstat -ntl | grep 1002
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN

--
Wysłano z serwisu OnetNiusy: http://niusy.onet.pl

Sergiusz Różański

unread,
Aug 11, 2004, 7:48:14 AM8/11/04
to
In article <0c9d.000010...@newsgate.onet.pl>, pawel....@gazeta.pl wrote:
> smtpd_reception_restrictions=permit_sasl_authenticated

a to co ma być?
wcześniej pewnie było puste, ale puste != default ;)
brakuje reject_unauth_destination (wymagany wpis
w tej acl-ce)

--
Sergiusz Różański rozanski.at.sergiusz.dot.com sq3bkn
RTG project http://gg.overwap.net
RMXF Postfix project http://rmxf.comm.pl

pawel....@gazeta.pl

unread,
Aug 11, 2004, 8:00:12 AM8/11/04
to
> In article <0c9d.000010...@newsgate.onet.pl>, pawel....@gazeta.pl
wrote:
> > smtpd_reception_restrictions=permit_sasl_authenticated
>
> a to co ma być?
> wcześniej pewnie było puste, ale puste != default ;)
> brakuje reject_unauth_destination (wymagany wpis
> w tej acl-ce)

Było ustawione ale tez nie działało i nie działa dalej

Sergiusz Różański

unread,
Aug 11, 2004, 8:14:38 AM8/11/04
to
In article <0c9d.000010...@newsgate.onet.pl>, pawel....@gazeta.pl wrote:
>> In article <0c9d.000010...@newsgate.onet.pl>, pawel....@gazeta.pl
> wrote:
>> > smtpd_reception_restrictions=permit_sasl_authenticated
>>
>> a to co ma być?
>> wcześniej pewnie było puste, ale puste != default ;)
>> brakuje reject_unauth_destination (wymagany wpis
>> w tej acl-ce)
>
> Było ustawione ale tez nie działało i nie działa dalej

z twojego logu wynika że postfix ma problem z połączeniem
do usługi smtp, czy aby napewno tam masz wszystko
prawidłowo zainstalowane? bo niby w master.cf masz
wpis smtp unix ale tak jakby podniesienie jej sprawiało
jakiś problem.
spróbuj pośledzić przez strace proces master postfixa, on odpala
kolejne usługi i może coś ci podpowie log z niego. Brak jakiegoś
pliku albo coś, może jakieś ścieżki źle ustawione?

Yaro

unread,
Aug 11, 2004, 11:28:06 AM8/11/04
to
Hej,

w tym, co przyslales jest:

smtpd_reception_restrictions=permit_sasl_authenticated

reCEPtion - nie powinno być: recipient?

Jarek Kaczmarczyk

pawel.kuch...@gazeta.pl

unread,
Aug 11, 2004, 12:18:54 PM8/11/04
to
Rzeczywiscie, już oczy bola od przegladania logow i manuali.
Ale i tak tez nie dziala blad: connect to transport smtp: connection refused

Szymon Sokół

unread,
Aug 11, 2004, 2:06:30 PM8/11/04
to
On Wed, 11 Aug 2004 11:48:14 +0000 (UTC), Sergiusz Różański
<write-onl...@sergiusz.com> wrote:

>In article <0c9d.000010...@newsgate.onet.pl>, pawel....@gazeta.pl wrote:
>> smtpd_reception_restrictions=permit_sasl_authenticated
>
>a to co ma być?

Ja się spytam szerzej, co to w ogóle ma być smtpd_reception_restrictions??
Jaka recepcja? To ma być AFAIR smtpd_recipient_restrictions!
--
Szymon Sokół (SS316-RIPE) -- Network Manager B
Computer Center, AGH - University of Science and Technology, Cracow, Poland O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F
Free speech includes the right not to listen, if not interested. -- Heinlein H

totyl

unread,
Aug 12, 2004, 11:11:38 AM8/12/04
to

Użytkownik <pawel....@gazeta.pl> napisał w wiadomości
news:0c9d.000010...@newsgate.onet.pl...

(..............)


> entry key pawel....@gazeta.pl
> Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: maps_find:
> recipient_canonical_maps: pawel....@gazeta.pl: not found
> Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: match_string: gazeta.pl ~?
> poczta.gnu.com.pl
> Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: match_string: gazeta.pl ~?
> localhost.gnu.com.pl
> Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: match_string: gazeta.pl ~?
> localhost
> Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: match_string: gazeta.pl ~?
> gnu.com.pl
> Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: match_list_match: gazeta.pl:
no
> match
> Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: maps_find:
> recipient_canonical_maps: @gazeta.pl: not found
> Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: mail_addr_find:
> pawel....@gazeta.pl -> (not found)
> Aug 11 13:03:08 wyszkow postfix/smtpd[23187]: maps_find: canonical_maps:
> pawel....@gazeta.pl: not found

(................)

A co potem w logach.......

> polecenie netstat pokazuje
> netstat -ntl | grep 1002
> tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN

A co to jest???


totyl


pawel.kuch...@gazeta.pl

unread,
Aug 12, 2004, 3:50:11 PM8/12/04
to
a dalej coś takiego

Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: mail_addr_find:
pawel....@gazeta.pl -> (not found)
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: connect to subsystem
public/cleanup
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: public/cleanup socket: wanted
attribute: queue_id
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: input attribute name: queue_id
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: input attribute value:
2CFE8774D4
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: public/cleanup socket: wanted
attribute: (list terminator)
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: input attribute name: (end)
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: send attr flags = 50
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: 2CFE8774D4:
client=pawel[192.168.1.134], sasl_method=PLAIN, sasl_username=***
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: > pawel[192.168.1.134]: 250 Ok
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: watchdog_pat: 0x8087450
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: < pawel[192.168.1.134]: DATA
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: > pawel[192.168.1.134]: 354 End
data with <CR><LF>.<CR><LF>
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: public/cleanup socket: wanted
attribute: status
Aug 12 21:47:32 wyszkow postfix/cleanup[15066]: 2CFE8774D4:
message-id=<1092339975.7547.0.camel@kuchcik>
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: input attribute name: status
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: input attribute value: 0
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: public/cleanup socket: wanted
attribute: reason
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: input attribute name: reason
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: input attribute value: (end)
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: public/cleanup socket: wanted
attribute: (list terminator)
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: input attribute name: (end)
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: > pawel[192.168.1.134]: 250 Ok:
queued as 2CFE8774D4
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: watchdog_pat: 0x8087450
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: < pawel[192.168.1.134]: RSET
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: > pawel[192.168.1.134]: 250 Ok
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: watchdog_pat: 0x8087450
Aug 12 21:47:32 wyszkow postfix/oqmgr[13400]: 2CFE8774D4:
from=<Pawel....@gnu.com.pl>, size=483, nrcpt=1 (queue active)
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: < pawel[192.168.1.134]: QUIT
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: > pawel[192.168.1.134]: 221 Bye
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: match_hostname: pawel ~?
192.168.1.0/24
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: match_hostaddr: 192.168.1.134 ~?
192.168.1.0/24
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: disconnect from
pawel[192.168.1.134]
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: master_notify: status 1
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: connection closed
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: watchdog_stop: 0x8087450
Aug 12 21:47:32 wyszkow postfix/smtpd[15065]: watchdog_start: 0x8087450
Aug 12 21:47:32 wyszkow postfix/oqmgr[13400]: 2CFE8774D4:
to=<pawel....@gazeta.pl>, relay=none, delay=0, status=deferred (delivery
temporarily suspended: transport is unavailable)
Aug 12 21:47:44 wyszkow postfix/oqmgr[13400]: warning: connect to transport
smtp: Connection refused
Aug 12 21:48:44 wyszkow postfix/oqmgr[13400]: warning: connect to transport
smtp: Connection refused

pawel.kuch...@gazeta.pl

unread,
Aug 12, 2004, 6:17:31 PM8/12/04
to
ach te literowki znalazlem blad
w master.cf
bylo:
smtp unix n n n - - smtp

a powinno

smtp unix - - n - - smtp

ale i tak dzieki za pomoc
0 new messages