Re: OpenSMTPD Problem
can you show your configuration file please ? Certainly: /etc/mail/smtpd.conf pki testweb.secure5.net certificate /etc/ssl/testweb.secure5.net.crt pki testweb.secure5.net key /etc/ssl/private/testweb.secure5.net.key listen on all tls smtps secure pki testweb.secure5.net auth-optional table aliases db:/etc/mail/aliases.db table src file:/etc/mail/relay accept from any for domain testweb.secure5.net virtual aliases deliver to mbox accept for local virtual aliases deliver to mbox accept from source src for any relay /etc/mail/relay 127.0.0.1 /etc/mail/aliases t...@testweb.secure5.net nj n...@testweb.secure5.net n...@obsd.com,n...@telin.com @testweb.secure5.netnj ... then the system aliases /-\ | Nicholas Janzen Personal Site: http://obsd.com| | Email: n...@obsd.comShort URL's: http://clearurl.net/ | | VE6OBS VE6TS (Basic+Advanced) Weather Site: http://nicholasjanzen.ca| | Balloon Site: http://arawr.ca | \-/ -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Re: OpenSMTPD Problem
when you use the local enqueuer with mutt, youe not connecting from 127.0.0.1 but you're using a unix socket, your ruleset says that it will only accept to relay from IP addresses listed in your /etc/mail/relay file, therefore the local enqueuer is rejected. Thanks, for your help, that was exactly what had happened: for the record, i added: accept for any relay and mail is now working. -- /-\ | Nicholas Janzen Personal Site: http://obsd.com| | Email: n...@obsd.comShort URL's: http://clearurl.net/ | | VE6OBS VE6TS (Basic+Advanced) Weather Site: http://nicholasjanzen.ca| | Balloon Site: http://arawr.ca | \-/ -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Re: OpenSMTPD Problem
On my system /usr/sbin/sendmail links to /usr/sbin/mailwrapper (5.5 default install) cat /etc/mailer.conf sendmail/usr/sbin/smtpctl send-mail /usr/sbin/smtpctl mailq /usr/sbin/smtpctl makemap /usr/libexec/smtpd/makemap newaliases /usr/libexec/smtpd/makemap I edited mailer.conf as per the manpage of smtpd even after hardlinking /usr/sbin/sendmail directly to /usr/sbin/smtpctl i still have this: echo test |mail n...@obsd.com # send-mail: command failed: 550 Invalid recipient after using mutt (same just added n...@obsd.com to the to line in mutt) Output of the delivery process (all) Error sending message, child exited 1 (). sendmail: command failed: 550 Invalid recipient this all worked before with the stock mailertable (which points to sendmail). On Sat, May 24, 2014 at 03:38:51PM +0200, Gilles Chehade wrote: On Sat, May 24, 2014 at 07:16:07AM -0600, Nicholas Janzen wrote: The real problem is when using mutt and mail, a command like this also gives the error: mail -s subject n...@test.com, this of course works: 'n...@test.com That's very strange, I have been using mutt daily for as long as OpenSMTPD exists and I have never ever ran into such an issue. As for mail, there's definitely something broken on your side because `mail` uses `sendmail` internally which should be a hardlink to `smtpctl` when OpenSMTPD gets installed ... and `smtpctl` never uses FROM FROM: foo@bar, so at the very least your local enqueuer is incorrectly configured which probably explains mutt too. -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Re: OpenSMTPD Problem
The real problem is when using mutt and mail, a command like this also gives the error: mail -s subject n...@test.com, this of course works: 'n...@test.com' On Sat, May 24, 2014 at 01:43:02PM +0200, Gilles Chehade wrote: On Fri, May 23, 2014 at 02:17:51PM -0600, Nicholas Janzen wrote: I'm really looking forward to the new OpenSMTP included in OpenBSD. I'm having an issue with both the mail program and inbound SMTP both give the same error Is there a way for it accept: n...@test.com in addition to: n...@test.com ? Why would you want to do that ? It violates RFC 5321 which explicitely states that: Reverse-path = Path / Forward-path = Path Path = [ A-d-l : ] Mailbox and mail = MAIL FROM: Reverse-path CRLF rcpt = RCPT TO: ( Postmaster@ Domain / Postmaster / Forward-path ) [SP Rcpt-parameters] CRLF If anything not only we should disallow: MAIL FROM: f...@bar.com But we should also disallow: MAIL FROM: f...@bar.com As space is not allowed between ':' and '' This is not about being rfc pedantic but about preventing people from writing broken SMTP code because we're too permissive and tolerant with protocol error. What is the real problem that has prompted you to ask this question ? -- Gilles Chehade https://www.poolp.org @poolpOrg -- /-\ | Nicholas Janzen Personal Site: http://obsd.com| | Email: n...@obsd.comSecurity Site: http://secure6.net | | VE6OBS VE6TS (Basic+Advanced) Weather Site: http://nicholasjanzen.ca| | Short URL's: http://clearurl.net/ Balloon Site: http://arawr.ca | \-/ -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
OpenSMTPD Problem
I'm really looking forward to the new OpenSMTP included in OpenBSD. I'm having an issue with both the mail program and inbound SMTP both give the same error Is there a way for it accept: n...@test.com in addition to: n...@test.com ? # telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 vpn.secure5.net ESMTP OpenSMTPD helo test.com 250 vpn.secure5.net Hello test.com [127.0.0.1], pleased to meet you MAIL FROM: n...@test.com 553 5.1.0: Sender address syntax error MAIL FROM: n...@test.com 250 2.0.0: Ok RCPT TO: n...@test.com 501 5.1.3: Recipient address syntax error RCPT TO: n...@test.com 250 2.1.5 Destination address valid: Recipient ok ^] telnet quit Connection closed. -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org