Tnx very much for an answer, your smtpd.conf is very good:)
Krzysztof Strzeszewski
[email protected]
On 24.11.2015 17:32, Gianluca D.Muscelli wrote:
> This is my config file…with Maildir /var/mail/ and DKIMproxy
>
> $ cat /etc/mail/smtpd.conf
> queue compression
> queue encryption key xxxxxxxxxxxxxxxxxxxxxxx ->(your_key_numbers)
>
> table aliases db:/etc/mail/aliases.db
> table domains file:/etc/mail/domains
> table users file:/etc/mail/users
> table blacklist-recipients file:/etc/mail/blacklist-recipients
>
> pki mail.gianlucamuscelli.it key "/etc/ssl/private/mail.example.it.key"
> pki mail.gianlucamuscelli.it certificate "/etc/ssl/mail.example.it.crt"
>
> max-message-size 50M
>
> listen on egress pki mail.example.it tls-require hostname example.it
> listen on egress pki mail.example.it smtps auth hostname example.it
>
> accept from any \
> recipient !<blacklist-recipients> \
> for domain <domains> \
> virtual <users> \
> deliver to maildir "/var/mail/%{user.username}/Inbox"
> accept \
> recipient !<blacklist-recipients> \
> for local alias <aliases> \
> deliver to maildir "/var/mail/%{user.username}/Inbox"
>
> listen on lo0 hostname example.it
> listen on lo0 port 10028 tag DKIM hostname example.it
>
> accept tagged DKIM \
> for any \
> relay \
> hostname example.it
> accept from local \
> for any \
> relay via smtp://127.0.0.1:10027
>
>
> Gianluca D.Muscelli
> [email protected]
>
> Il giorno 24/nov/2015, alle ore 17:13, Krzysztof Strzeszewski
> <[email protected]> ha scritto:
>
>> 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:<[email protected]> 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
>> #----------------------------------------------------------------------------------------