9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] smtpd
@ 2007-11-02 12:43 arisawa
  2007-11-02 13:38 ` erik quanstrom
  0 siblings, 1 reply; 13+ messages in thread
From: arisawa @ 2007-11-02 12:43 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

The following data is extracted from my /sys/log/smtpd and /sys/log/ 
smtp.

smtpd:
ar Oct 30 13:43:16 ehlo from 82.34.95.22 as  
82-34-95-22.cable.ubr05.gill.blueyonder.co.uk
ar Oct 30 13:43:26 [82-34-95-22.cable.ubr05.gill.blueyonder.co.uk/ 
82.34.95.22] fastcoco.com!kjeld sent 179 bytes to ar.aichi-u.ac.jp! 
9804261509.aa06201

smtp:
ar Oct 30 13:43:26 /dev/null sent 2623 bytes to kjeld@fastcoco.com

The person who submitted the mail from  
82-34-95-22.cable.ubr05.gill.blueyonder.co.uk might not be  
kjeld@fastcoco.com.

I think it is better for smtpd to reject with message: 550 Requested  
action not taken: mailbox unavailable

Sorry if this is already fixed.

Kenji Arisawa


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [9fans] smtpd
  2007-11-02 12:43 [9fans] smtpd arisawa
@ 2007-11-02 13:38 ` erik quanstrom
  2007-11-02 21:44   ` arisawa
  0 siblings, 1 reply; 13+ messages in thread
From: erik quanstrom @ 2007-11-02 13:38 UTC (permalink / raw)
  To: 9fans

yes.  i believe this bug was fixed.  i had this problem, too.
	9804261509.aa06201
gives a different error (Invalid address) than "unknown user".
any local name with an invalid character will do this.
i think you need to update /mail/lib/validatesender.  here's
my fix:

#!/bin/rc
mail -x $1 | grep -vs '^unknown user|^Invalid address'

this fix is very important.  without it, you can be an open spam
relay.

- erik

> The following data is extracted from my /sys/log/smtpd and /sys/log/ 
> smtp.
> 
> smtpd:
> ar Oct 30 13:43:16 ehlo from 82.34.95.22 as  
> 82-34-95-22.cable.ubr05.gill.blueyonder.co.uk
> ar Oct 30 13:43:26 [82-34-95-22.cable.ubr05.gill.blueyonder.co.uk/ 
> 82.34.95.22] fastcoco.com!kjeld sent 179 bytes to ar.aichi-u.ac.jp! 
> 9804261509.aa06201
> 
> smtp:
> ar Oct 30 13:43:26 /dev/null sent 2623 bytes to kjeld@fastcoco.com
> 
> The person who submitted the mail from  
> 82-34-95-22.cable.ubr05.gill.blueyonder.co.uk might not be  
> kjeld@fastcoco.com.
> 
> I think it is better for smtpd to reject with message: 550 Requested  
> action not taken: mailbox unavailable
> 
> Sorry if this is already fixed.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [9fans] smtpd
  2007-11-02 13:38 ` erik quanstrom
@ 2007-11-02 21:44   ` arisawa
  0 siblings, 0 replies; 13+ messages in thread
From: arisawa @ 2007-11-02 21:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Thanks, I will try.

Kenji Arisawa

On 2007/11/02, at 22:38, erik quanstrom wrote:

> yes.  i believe this bug was fixed.  i had this problem, too.
> 	9804261509.aa06201
> gives a different error (Invalid address) than "unknown user".
> any local name with an invalid character will do this.
> i think you need to update /mail/lib/validatesender.  here's
> my fix:
>
> #!/bin/rc
> mail -x $1 | grep -vs '^unknown user|^Invalid address'
>
> this fix is very important.  without it, you can be an open spam
> relay.
>
> - erik
>
>> The following data is extracted from my /sys/log/smtpd and /sys/log/
>> smtp.
>>
>> smtpd:
>> ar Oct 30 13:43:16 ehlo from 82.34.95.22 as
>> 82-34-95-22.cable.ubr05.gill.blueyonder.co.uk
>> ar Oct 30 13:43:26 [82-34-95-22.cable.ubr05.gill.blueyonder.co.uk/
>> 82.34.95.22] fastcoco.com!kjeld sent 179 bytes to ar.aichi-u.ac.jp!
>> 9804261509.aa06201
>>
>> smtp:
>> ar Oct 30 13:43:26 /dev/null sent 2623 bytes to kjeld@fastcoco.com
>>
>> The person who submitted the mail from
>> 82-34-95-22.cable.ubr05.gill.blueyonder.co.uk might not be
>> kjeld@fastcoco.com.
>>
>> I think it is better for smtpd to reject with message: 550 Requested
>> action not taken: mailbox unavailable
>>
>> Sorry if this is already fixed.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [9fans] smtpd
  2018-02-22  0:19   ` Skip Tavakkolian
@ 2018-02-22  1:18     ` Jeff Sickel
  0 siblings, 0 replies; 13+ messages in thread
From: Jeff Sickel @ 2018-02-22  1:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

It’s not just gmail.  My use of Mailscanner marks most of 9fans as spam now.
The default settings are more restrictive about what is sent through mail
protocols.  The shift to github hooks and html emails with javascript trips
the spam tools and sweeps 9fans directly into the junk bit bucket.

-jas


> On Feb 21, 2018, at 6:19 PM, Skip Tavakkolian <skip.tavakkolian@gmail.com> wrote:
> 
> I'm not sure if this is related to your problem, but your messages to 9fans are getting marked as spam by gmail. It complains that your address is failing verification for being from Yahoo.com.
> 
> On Feb 21, 2018 9:06 AM, "G B" <g_patrickb@yahoo.com> wrote:
> I bought a new machine and can't get Plan 9 from Bell Labs to boot so I've installed 9front.  It works great and is very fast.  I've configured smtpd on the machine and it is getting messages but they're being blocked:
> 
> Feb 21 10:58:38 Disallowed yahoo.com!gary (sonic307-3.consmr.mail.bf2.yahoo.com/74.6.134.42) to blocked name mydomain.com!gary
> 
> Why am I getting blocked when receiving mail?  I know I've missed something.  
> 
> Thanks.
> 
> 




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [9fans] smtpd
  2018-02-21 17:05 ` G B
  2018-02-21 22:26   ` Steve Simon
@ 2018-02-22  0:19   ` Skip Tavakkolian
  2018-02-22  1:18     ` Jeff Sickel
  1 sibling, 1 reply; 13+ messages in thread
From: Skip Tavakkolian @ 2018-02-22  0:19 UTC (permalink / raw)
  To: G B, Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

I'm not sure if this is related to your problem, but your messages to 9fans
are getting marked as spam by gmail. It complains that your address is
failing verification for being from Yahoo.com.

On Feb 21, 2018 9:06 AM, "G B" <g_patrickb@yahoo.com> wrote:

I bought a new machine and can't get Plan 9 from Bell Labs to boot so I've
installed 9front.  It works great and is very fast.  I've configured smtpd
on the machine and it is getting messages but they're being blocked:

Feb 21 10:58:38 Disallowed yahoo.com!gary (sonic307-3.consmr.mail.bf2.
yahoo.com/74.6.134.42) to blocked name mydomain.com!gary

Why am I getting blocked when receiving mail?  I know I've missed
something.

Thanks.

[-- Attachment #2: Type: text/html, Size: 1892 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [9fans] smtpd
  2018-02-21 17:05 ` G B
@ 2018-02-21 22:26   ` Steve Simon
  2018-02-22  0:19   ` Skip Tavakkolian
  1 sibling, 0 replies; 13+ messages in thread
From: Steve Simon @ 2018-02-21 22:26 UTC (permalink / raw)
  To: G B, Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]


i expect you need to modify /mail/lib/remotemail

see here for detail:

https://9p.io/wiki/plan9/Mail_configuration/index.html

-Steve


> On 21 Feb 2018, at 17:05, G B <g_patrickb@yahoo.com> wrote:
> 
> I bought a new machine and can't get Plan 9 from Bell Labs to boot so I've installed 9front.  It works great and is very fast.  I've configured smtpd on the machine and it is getting messages but they're being blocked:
> 
> Feb 21 10:58:38 Disallowed yahoo.com!gary (sonic307-3.consmr.mail.bf2.yahoo.com/74.6.134.42) to blocked name mydomain.com!gary
> 
> Why am I getting blocked when receiving mail?  I know I've missed something.  
> 
> Thanks.
> 

[-- Attachment #2: Type: text/html, Size: 1792 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [9fans] smtpd
       [not found] <712199479.2960528.1519232740715.ref@mail.yahoo.com>
@ 2018-02-21 17:05 ` G B
  2018-02-21 22:26   ` Steve Simon
  2018-02-22  0:19   ` Skip Tavakkolian
  0 siblings, 2 replies; 13+ messages in thread
From: G B @ 2018-02-21 17:05 UTC (permalink / raw)


I bought a new machine and can't get Plan 9 from Bell Labs to boot so I've installed 9front.? It works great and is very fast.? I've configured smtpd on the machine and it is getting messages but they're being blocked:
Feb 21 10:58:38 Disallowed yahoo.com!gary (sonic307-3.consmr.mail.bf2.yahoo.com/74.6.134.42) to blocked name mydomain.com!gary
Why am I getting blocked when receiving mail?? I know I've missed something.? 

Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.9fans.net/private/9fans/attachments/20180221/ef7c852a/attachment.html>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [9fans] smtpd
  2018-01-13 23:30 ` G B
@ 2018-01-14 12:59   ` Steve Simon
  0 siblings, 0 replies; 13+ messages in thread
From: Steve Simon @ 2018-01-14 12:59 UTC (permalink / raw)
  To: G B, Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 988 bytes --]

i still run a plan9 based mail server too, and have dome a lot to mitigate the amounts of spam and  bots trying to brute force my email auth.

i will post details later but plan9 sill does good service as a mail relay.

-Steve


> On 13 Jan 2018, at 23:30, G B <g_patrickb@yahoo.com> wrote:
> 
> Besides my mail receiving messages from invalid users, such as, having a domain named mydomain.com it will accept fred@mydomain.com even though fred is not a valid user.  Shouldn't it bounce the mail?  
> 
> Also, instead of mail being delivered to /mail/box/$user/mbox everything is going to /mail/queue/none.
> 
> In /mail/lib/rewrite I added:
> \l\.mydomain\.com!(.*)   alias    \1
> \l\.anotherdomain\.net!(.*)    alias   \1
> 
> In /mail/lib/names.local I added:
> auser@mydomain.com   glenda
> 
> In smtpd.conf I added:
> norelay   on
> ournets  192.168.2.0/24  192.168.1.0/24
> ourdomains *.mydomain.com  *.anotherdomain.net
> 
> 
> Thanks for any help.
> 

[-- Attachment #2: Type: text/html, Size: 2321 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [9fans] smtpd
       [not found] <1720486952.343228.1515886233042.ref@mail.yahoo.com>
@ 2018-01-13 23:30 ` G B
  2018-01-14 12:59   ` Steve Simon
  0 siblings, 1 reply; 13+ messages in thread
From: G B @ 2018-01-13 23:30 UTC (permalink / raw)


Besides my mail receiving messages from invalid users, such as, having a domain named mydomain.com it will accept fred at mydomain.com even though fred is not a valid user.? Shouldn't it bounce the mail?? 

Also, instead of mail being delivered to /mail/box/$user/mbox everything is going to /mail/queue/none.
In /mail/lib/rewrite I added:\l\.mydomain\.com!(.*)?? alias??? \1\l\.anotherdomain\.net!(.*)??? alias?? \1
In /mail/lib/names.local I added:auser at mydomain.com?? glenda
In smtpd.conf I added:norelay?? onournets? 192.168.2.0/24? 192.168.1.0/24ourdomains *.mydomain.com? *.anotherdomain.net

Thanks for any help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.9fans.net/private/9fans/attachments/20180113/122fcfa3/attachment.html>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [9fans] smtpd
       [not found] <1945186094.38632.1515822791590.ref@mail.yahoo.com>
@ 2018-01-13  5:53 ` G B
  0 siblings, 0 replies; 13+ messages in thread
From: G B @ 2018-01-13  5:53 UTC (permalink / raw)


Thanks to the replies I had earlier about setting up a mail server to send and receive mail, it is now working. ?Thanks.
However, how does email get rejected? ?Say I have a domain named mydomain.com but user "fred" doesn't exist, how would an email to fred at mydomain.com be rejected?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.9fans.net/private/9fans/attachments/20180113/97e5b5aa/attachment.html>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [9fans] smtpd
@ 2001-04-22 13:24 bobf
  2001-04-22 13:23 ` arisawa
  0 siblings, 1 reply; 13+ messages in thread
From: bobf @ 2001-04-22 13:24 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 178 bytes --]

the message size limit is approx. 128 megabytes.

check the /mail/tmp exists and is mode 777
as the mail system spills large messages
to that directory during processing.


[-- Attachment #2: Type: message/rfc822, Size: 2100 bytes --]

From: arisawa@ar.aichi-u.ac.jp
To: 9fans@cse.psu.edu
Subject: [9fans] smtpd
Date: Sun, 22 Apr 2001 21:32:51 +0900
Message-ID: <20010422131819.7A7CE19A3D@mail.cse.psu.edu>

Hello 9fans,

Is there any limitation in the data size of mail that can be
accepted by smtpd?
Large mailes with a photo image cannot be handled by smtpd.
The size ls 301726 bytes for example.

I inserted a debugging line in smtpd.c (the latest release) as
bellow:

	if(sawdot == 0){
		/* message did not terminate normally */
		syslog(0, "smtpd-debug", "nodot: from %s at %d",
him, nbytes);
		syskillpg(pp->pid);
		status = 1;
	}

and observed /sys/log/smtpd-debug:
cpu% tail /sys/log/smtpd-debug
ar Apr 22 21:07:43 nodot: from nx.aichi-u.ac.jp at 81960
ar Apr 22 21:08:30 nodot: from nx.aichi-u.ac.jp at 81960
ar Apr 22 21:15:24 nodot: from nx.aichi-u.ac.jp at 81960
ar Apr 22 21:19:52 nodot: from nx.aichi-u.ac.jp at 81960
ar Apr 22 21:35:45 nodot: from nx.aichi-u.ac.jp at 81960

where nx.aichi-u.ac.jp is a UNIX machine of my home,
and qmail is running on it.

Thanks,

Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [9fans] smtpd
  2001-04-22 13:24 bobf
@ 2001-04-22 13:23 ` arisawa
  0 siblings, 0 replies; 13+ messages in thread
From: arisawa @ 2001-04-22 13:23 UTC (permalink / raw)
  To: 9fans

Hello,

>check the /mail/tmp exists and is mode 777
Thank you.
The mail is accepted by smtpd.

Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [9fans] smtpd
@ 2001-04-22 12:32 arisawa
  0 siblings, 0 replies; 13+ messages in thread
From: arisawa @ 2001-04-22 12:32 UTC (permalink / raw)
  To: 9fans

Hello 9fans,

Is there any limitation in the data size of mail that can be
accepted by smtpd?
Large mailes with a photo image cannot be handled by smtpd.
The size ls 301726 bytes for example.

I inserted a debugging line in smtpd.c (the latest release) as
bellow:

	if(sawdot == 0){
		/* message did not terminate normally */
		syslog(0, "smtpd-debug", "nodot: from %s at %d",
him, nbytes);
		syskillpg(pp->pid);
		status = 1;
	}

and observed /sys/log/smtpd-debug:
cpu% tail /sys/log/smtpd-debug
ar Apr 22 21:07:43 nodot: from nx.aichi-u.ac.jp at 81960
ar Apr 22 21:08:30 nodot: from nx.aichi-u.ac.jp at 81960
ar Apr 22 21:15:24 nodot: from nx.aichi-u.ac.jp at 81960
ar Apr 22 21:19:52 nodot: from nx.aichi-u.ac.jp at 81960
ar Apr 22 21:35:45 nodot: from nx.aichi-u.ac.jp at 81960

where nx.aichi-u.ac.jp is a UNIX machine of my home,
and qmail is running on it.

Thanks,

Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-02-22  1:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-02 12:43 [9fans] smtpd arisawa
2007-11-02 13:38 ` erik quanstrom
2007-11-02 21:44   ` arisawa
     [not found] <712199479.2960528.1519232740715.ref@mail.yahoo.com>
2018-02-21 17:05 ` G B
2018-02-21 22:26   ` Steve Simon
2018-02-22  0:19   ` Skip Tavakkolian
2018-02-22  1:18     ` Jeff Sickel
     [not found] <1720486952.343228.1515886233042.ref@mail.yahoo.com>
2018-01-13 23:30 ` G B
2018-01-14 12:59   ` Steve Simon
     [not found] <1945186094.38632.1515822791590.ref@mail.yahoo.com>
2018-01-13  5:53 ` G B
  -- strict thread matches above, loose matches on Subject: below --
2001-04-22 13:24 bobf
2001-04-22 13:23 ` arisawa
2001-04-22 12:32 arisawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).