Re: Accept mail for all recipients

2019-10-30 Thread Sergey Seacher

30.10.2019 20:08, Edgar Pettijohn пишет:


$ grep smtpd /etc/passwd


smtpd:x:973:969:opensmtpd privsep user:/var/empty/smtpd:/sbin/nologin

--
Sergey




Re: Accept mail for all recipients

2019-10-30 Thread Sergey Seacher

26.10.2019 19:06, Sergey Seacher пишет:

26.10.2019 13:51, Reio Remma пишет:

On 26/10/2019 13:35, Sergey Seacher wrote:

Hello!

How can I make, opensmtpd accept mail for all recipients: that are 
present in the file /etc/opensmtpd/aliases and that are not present?

I had the rule in my /etc/opensmtpd/smtpd.conf file:

accept \
   from any \
   for domain domain.ltd alias  \
   deliver to lmtp "/run/dovecot/lmtp" rcpt-to

I have changed this rule to:

accept \
   from any \
   for domain domain.ltd \
   deliver to lmtp "/run/dovecot/lmtp" rcpt-to

Now, if I send to any recipient in my domain, for example 
rggg...@domain.ltd, I receive error 550, but I need mail to be 
deliver to i...@domain.ltd


Do you mean a catch all alias? Try adding to your aliases file:

@domain.ltd i...@domain.ltd

And re-add alias  to your accept rule.


Thanks! Also I have changed table aliases to table vusers. It works.

Not working again.
The contents of the file /etc/opensmtpd/aliases:

   info              smtpd
   @domain.ltd    i...@domain.ltd

Rule in the file /etc/opensmtpd/smtpd.conf:

   accept \
   from any \
   for domain domain.ltd alias  \
   deliver to lmtp "/run/dovecot/lmtp" rcpt-to

I sended an email to rggg...@domain.ltd and I got an error in log:

   ac73a7d6da66117e smtp event=connected address=209.85.208.173
   host=mail-lj1-f173.google.com
   ac73a7d6da66117e smtp event=failed-command address=209.85.208.173
   host=mail-lj1-f173.google.com command="RCPT TO:"
   result="550 Invalid recipient"
   ac73a7d6da66117e smtp event=closed address=209.85.208.173
   host=mail-lj1-f173.google.com reason=quit

Then I renamed the file /etc/opensmtpd/aliases to /etc/opensmtpd/vusers 
and changed the rule to:


   accept \
   from any \
   for domain domain.ltd virtual  \
   deliver to lmtp "/run/dovecot/lmtp" rcpt-to

And now I get an error:

   e85fb8ffeed306b1 smtp event=connected address=209.85.167.50
   host=mail-lf1-f50.google.com
   e85fb8ffeed306b1 smtp event=message address=209.85.167.50
   host=mail-lf1-f50.google.com msgid=7d1551d1
   from= to= size=2904
   ndest=1 proto=ESMTP
   e85fb8ffeed306b1 smtp event=closed address=209.85.167.50
   host=mail-lf1-f50.google.com reason=quit
    mda event=delivery evpid=7d1551d1e9537f74
   from= to=
   rcpt=, user=smtpd method=lmtp delay=0s
   result=TempFail stat=Error ("RCPT TO rejected: 550 5.1.1 
   User doesn't exist: smtpd")

--
Sergey



Re: Accept mail for all recipients

2019-10-26 Thread Sergey Seacher

26.10.2019 13:51, Reio Remma пишет:

On 26/10/2019 13:35, Sergey Seacher wrote:

Hello!

How can I make, opensmtpd accept mail for all recipients: that are 
present in the file /etc/opensmtpd/aliases and that are not present?

I had the rule in my /etc/opensmtpd/smtpd.conf file:

accept \
   from any \
   for domain domain.ltd alias  \
   deliver to lmtp "/run/dovecot/lmtp" rcpt-to

I have changed this rule to:

accept \
   from any \
   for domain domain.ltd \
   deliver to lmtp "/run/dovecot/lmtp" rcpt-to

Now, if I send to any recipient in my domain, for example 
rggg...@domain.ltd, I receive error 550, but I need mail to be 
deliver to i...@domain.ltd


Do you mean a catch all alias? Try adding to your aliases file:

@domain.ltd i...@domain.ltd

And re-add alias  to your accept rule.


Thanks! Also I have changed table aliases to table vusers. It works.

--
Sergey



Accept mail for all recipients

2019-10-26 Thread Sergey Seacher

Hello!

How can I make, opensmtpd accept mail for all recipients: that are 
present in the file /etc/opensmtpd/aliases and that are not present?

I had the rule in my /etc/opensmtpd/smtpd.conf file:

   accept \
   from any \
   for domain domain.ltd alias  \
   deliver to lmtp "/run/dovecot/lmtp" rcpt-to

I have changed this rule to:

   accept \
   from any \
   for domain domain.ltd \
   deliver to lmtp "/run/dovecot/lmtp" rcpt-to

Now, if I send to any recipient in my domain, for example 
rggg...@domain.ltd, I receive error 550, but I need mail to be deliver 
to i...@domain.ltd


--
Thank you!



Re: How can I integrate opensmtpd with opendkim?

2019-01-30 Thread Sergey Seacher
I use Centos 7. There is packages perl-Mail-DKIM and opendkim in 
repository, but there is not

dkimproxy.

30.01.2019 19:04, Chris Bennett пишет:

On Wed, Jan 30, 2019 at 05:45:35PM +0300, Sergey Seacher wrote:

Hello, All!

How can I integrate opensmtpd with opendkim?


There is also dkimproxy and a Perl module p5-Mail-DKIM.
Which one do you recommend, you hinted that there will be changes from
6.4 to 6.5 for dkimproxy setup when it comes out, if I understood
correctly.

I've got things working for 6.4 right now, but I will post a couple of
questions about using auth and some other stuff I expect/want to use
shortly.

Thanks, I'm really thrilled to have this massive improvement over
sendmail!! All of your time doing this work has been so helpful, I
really hated sendmail with that huge book I had for it.

Chris Bennett



--

С уважением,
Сергей


--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Change name of host that is writed to Received string

2019-01-16 Thread Sergey Seacher
Thanks!
I've added it to file /etc/opensmtpd/mailname

2019-01-14 19:28 GMT+03:00, Joel Carnat :
> Hi,
>
> Would filling /etc/mail/mailname achieve your goal ?
>
> On Mon 14 Jan 19:15, Sergey Seacher wrote:
>> Hello!
>>
>> I have a question.
>> When my server OpenSMTPD 6.0.3 portable receives a message, it adds to
>> message a string "Received" that contains the a name of host, that is
>> writed in file /etc/hostname. Can I change this name of host without
>> change /etc/hostname?
>>
>> --
>> You received this mail because you are subscribed to misc@opensmtpd.org
>> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
>>
>

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Change name of host that is writed to Received string

2019-01-14 Thread Sergey Seacher
Hello!

I have a question.
When my server OpenSMTPD 6.0.3 portable receives a message, it adds to
message a string "Received" that contains the a name of host, that is
writed in file /etc/hostname. Can I change this name of host without
change /etc/hostname?

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org