Re: Forward of singele email address

2018-08-24 Thread opensmtpd
Sorry, made a error.

the correct added line was:

accept from any recipient  for local alias  
deliver to maildir

and now its ignored again. The message is deliverd again to my catch all email.



On 24.08.2018 17:10, opensm...@stachelkaktus.net wrote:
> Hello Matt,
> 
> thank you for your hint.
> 
> On 24.08.2018 15:10, Reio Remma wrote:
>> You need to configure your OpenSMTPD to actually use the alias file.
> 
> before I had the line in smtpd.conf
> 
> accept for local alias  deliver to maildir
> 
> now I've added
> 
> accept from any recipient  for domain "stachelkaktus.net" 
> deliver to maildir
> 
> In forward-recipient I've added te...@stachelkaktus.net
> 
> now it is not ignored any more, but I've got again the 550 Invalid recipient
> 
> Aug 24 17:07:55 biene smtpd[30055]: 8ec939009c423f8e smtp 
> event=failed-command address=212.227.17.21 host=mout.gmx.net command="RCPT 
> TO:" result="550 Invalid recipient"
> 
> 


-- 
cheers

wof

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



Re: Forward of singele email address

2018-08-24 Thread Reio Remma

On 24.08.18 16:04, opensm...@stachelkaktus.net wrote:

Hello Matt,

On 24.08.2018 13:49, Matt Schwartz wrote:

Try adding it to the aliases file and see what happens but I think the
aliases file may only work to map a system user to another email address.

I've added another e-mail to an alias:

# cat aliases
...
test2mydomain.net: i...@otherdomain.com

This line seems to be completely ignored from opensmtp. Therefor it
seems your assumption that this works only to map a system user to
another email address seems to be right.


You need to configure your OpenSMTPD to actually use the alias file.

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



Re: Forward of singele email address

2018-08-24 Thread opensmtpd
Hello Matt,

On 24.08.2018 13:49, Matt Schwartz wrote:
> Try adding it to the aliases file and see what happens but I think the
> aliases file may only work to map a system user to another email address.

I've added another e-mail to an alias:

# cat aliases
...
test2mydomain.net: i...@otherdomain.com

This line seems to be completely ignored from opensmtp. Therefor it
seems your assumption that this works only to map a system user to
another email address seems to be right.

-- 
cheers

wof

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



Re: Forward of singele email address

2018-08-24 Thread edgar

On Aug 24, 2018 6:15 AM, opensm...@stachelkaktus.net wrote:
>
> Hello Reio,
>
> On 24.08.2018 10:47, Reio Remma wrote:
> > What do opensmtpd log entries look like?
> > 
> > You might want to try running with "smtpctl trace lookup" and see what
> > it's actually resolving to etc.
>
> If I run 
> smtpctl trace lookup
>
> I get command succeeded.

That means the smtpctl command succeeded. It will provide more info in the logs.

 But in /var/log/maillog and /var/log/messages no additional message entries 
are shown.

You need to send your test message again to get more logging.

> Do I need something else to see the trace?
>
> A log entry so far is:
>
> Aug 24 13:10:50 biene smtpd[4891]: f02a3171c9dc5025 smtp event=connected 
> address=212.227.126.135 host=mout.kundenserver.de
> Aug 24 13:10:50 biene smtpd[4891]: f02a3171c9dc5025 smtp event=starttls 
> address=212.227.126.135 host=mout.kundenserver.de ciphers="version=TLSv1.2, 
> cipher=ECDHE-RSA-AES256-GCM-SHA384, bits=256"
> Aug 24 13:10:50 biene smtpd[4891]: f02a3171c9dc5025 smtp event=failed-command 
> address=212.227.126.135 host=mout.kundenserver.de command="RCPT 
> TO:" result="550 Invalid recipient"
> Aug 24 13:10:50 biene smtpd[4891]: f02a3171c9dc5025 smtp event=closed 
> address=212.227.126.135 host=mout.kundenserver.de reason=quit
>
>
>
> cheers
>
> wof
>
> -- 
> You received this mail because you are subscribed to misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
>
b��yǢ��m�+)[yƮ�쨹�޲��r��y�h�+kiv��N�r��zǧu���[h�+��칻�&ޢ���kiv��

Re: Forward of singele email address

2018-08-24 Thread Reio Remma

What do opensmtpd log entries look like?

You might want to try running with "smtpctl trace lookup" and see what 
it's actually resolving to etc.


Good luck,
Reio

On 24.08.18 11:19, opensm...@stachelkaktus.net wrote:

Hello Matt,

thank you for your answer.

On 24.08.2018 02:48, Matt Schwartz wrote:

Try adding something similar to this to your vusers:
u...@example.org u...@example.com


I've tried this additionally before.


# cat virtusertable
...
te...@mydomain.net   external
te...@mydomain.net   i...@otherdomain.com


and get the same error:
i...@otherdomain.com:
SMTP error from remote server for RCPT TO command, host: mout.mydomain.net 
reason: 550 Invalid recipient





additionally I had a typo in the first message, the correct writing is:

# cat /var/maildir/external/.forward
i...@otherdomain.com




--
Tervitades
Reio Remma


MR Stuudio 25 aastat

*MR Stuudio OÜ*
Tondi 17b, 11316, Tallinn
Tel +372 650 4808
Mob +372 56 22 00 33
r...@mrstuudio.ee
www.mrstuudio.ee





Re: Forward of singele email address

2018-08-24 Thread opensmtpd
Hello Matt,

thank you for your answer.

On 24.08.2018 02:48, Matt Schwartz wrote:
> Try adding something similar to this to your vusers:
> u...@example.org     u...@example.com
> 

I've tried this additionally before. 


# cat virtusertable
...
te...@mydomain.net   external
te...@mydomain.net   i...@otherdomain.com


and get the same error:
i...@otherdomain.com:
SMTP error from remote server for RCPT TO command, host: mout.mydomain.net 
reason: 550 Invalid recipient





additionally I had a typo in the first message, the correct writing is:

# cat /var/maildir/external/.forward
i...@otherdomain.com

-- 
cheers

wof

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



Re: Forward of singele email address

2018-08-23 Thread Matt Schwartz
Try adding something similar to this to your vusers:
u...@example.orgu...@example.com

It would help to know what's in your vusers file.

On Thu, Aug 23, 2018, 8:20 PM  wrote:

> Hello,
>
> I have a problem with forwarding for an email account to an external
> address. I user openbsd version  6.3.
>
> # cat /etc/mail/userinfo
> ...
> external 5000:5000:/var/maildir/external
>
>
> # cat /var/maildir/caritas/.forward
> i...@otherdomain.com
>
> # cat /etc/mail/smtpd.conf
> ...
> accept from any recipient ! for domain "mydomain.net"
> virtual  userbase  deliver to maildir
>
>
> I'm pretty sure that this configuration has worked a few version before
> but I haven't tested it for quite a while and now it doesn't
> work any more.
>
> Maybe it is much easier in an other way.
> Can somebody give me a hand? Thanks in advance.
>
> --
> cheers
>
> wof
>
> --
> You received this mail because you are subscribed to misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
>
>