read the man page a bit more carfully around how the auth keyword works. you probably dont want auth on that line.
-- Jason Barbier | E: jab...@serversave.us GPG Key-ID: B5F75B47(http://kusuriya.devio.us/pubkey.asc) On Tue, Nov 24, 2015, at 08:13 AM, Krzysztof Strzeszewski wrote: > Hello, > > when I use in smtpd.conf: > . > .. > ... > listen on egress secure pki nroot.pl auth <secrets> > ... > .. > . > > mail sending to me can't reach: > > smtp-in: Failed command on session 14529d46237222d5: "MAIL > FROM:<t...@gmail.com> SIZE=1599" =>530 5.5.1 Invalid command: Must issue > an AUTH command first > > > when I use in smtpd.conf > > . > .. > ... > listen on egress secure pki nroot.pl > ... > .. > . > > > is ok, mail from world can reach to me, but then smtpd server is open > for send mail for each. > How to use auth for only sending mail from my client? > > > Regards, > Krzych > > > my smtpd.conf: > #---------------------------------------------------------------------------------------- > listen on lo0 > > table aliases db:/etc/mail/aliases.db > table secrets db:/etc/mail/secrets.db > pki exaple.com certificate "/etc/ssl/mail.crt" > pki exaple.com key "/etc/ssl/private/mail.key" > > listen on egress secure pki exaple.com auth <secrets> > accept from any for domain "exaple.com" alias <aliases> deliver to > maildir > > accept for local alias <aliases> userbase <secrets> deliver to maildir > accept from local for any relay > accept from any for any relay > #----------------------------------------------------------------------------------------