Re: smtpd aliases file issue

2017-05-11 Thread Edgar Pettijohn
Just for the record using a flat "file" for aliases you don't need to run newaliases. ⁣Sent from BlueMail ​ On May 11, 2017, 2:30 AM, at 2:30 AM, Gilles Chehade wrote: >Much better :-) > >You don’t need to restart the daemon, you simply need to tell it >through smtpctl that the table aliases ne

Re: smtpd aliases file issue

2017-05-11 Thread Ajitabh Pandey
Thanks Giles. Regards. -- ~ajitabhpandey On Thu, May 11, 2017 at 12:59 PM, Gilles Chehade wrote: > Much better :-) > > You don’t need to restart the daemon, you simply need to tell it through > smtpctl that the table aliases needs to be reloaded: > > $ doas smtpctl update table aliases

Re: smtpd aliases file issue

2017-05-11 Thread Gilles Chehade
Much better :-) You don’t need to restart the daemon, you simply need to tell it through smtpctl that the table aliases needs to be reloaded: $ doas smtpctl update table aliases Gilles > On 11 May 2017, at 08:17, Ajitabh Pandey wrote: > > Hi Gilles, > > I did not change anything fr

Re: smtpd aliases file issue

2017-05-11 Thread Gilles Chehade
Obviously you don’t need to restart the daemon to pickup new aliases. If you are using a plain file aliases map it can be reloaded atomically at runtime using smtpctl. If you are using a db file, it can be rebuilt using the newaliases / makemap utility. I can’t tell you which one to use because

Re: smtpd aliases file issue

2017-05-10 Thread Ajitabh Pandey
Hi Gilles, I did not change anything from the default. But I realise all may not be using default file like me and may not know what is in it. Here is a copy of the contents just for reference. The problem is solved by restarting the smtpd as sugested by Edgar. $ doas cat /etc/mail/smtpd.conf ta

Re: smtpd aliases file issue

2017-05-10 Thread Ajitabh Pandey
Thanks Edgar. That worked. This is what I was missing. I actually removed my .forward from the user01 account now and directly updated the aliases file to forward email to external email address. Just for documentation purpose, here are the steps - $ doas vi /etc/mail/aliases file $ doas newalia

Re: smtpd aliases file issue

2017-05-10 Thread Gilles Chehade
On Wed, May 10, 2017 at 04:32:55PM +0530, Ajitabh Pandey wrote: > > If my understanding about how this should work incorrect? If not then what > am I doing wrong? > What you are doing wrong is not showing your configuration file so we're able to check if it does what you think it is doing --

Re: smtpd aliases file issue

2017-05-10 Thread Edgar Pettijohn
Did you restart smtpd? ⁣Sent from BlueMail ​ On May 10, 2017, 6:03 AM, at 6:03 AM, Ajitabh Pandey wrote: >Hello, > >On an OpenBSD 6.1, I have default smtpd setup. > >I placed a .forward file in root's home and am able to receive the >emails >on an external address. > >I then removed the .forwar

Re: smtpd aliases

2013-06-20 Thread Denis
Hi William, I would suggest trying these things first: - have you checked smtpd main page to Modify the current mailwrapper(8) settings? - stop smtpd and run it in foreground "smtpd -d -v", so all the info will go to stderr - try to exclude "dovecot" and check that smtpd can deliver messages

Re: smtpd aliases

2013-06-19 Thread Gilles Chehade
On Tue, Jun 18, 2013 at 12:33:51PM -0700, William Orr wrote: > Thanks Gilles, first for the help and second for the fantastic software. > > One last question - is there a way I can resend the mail stuck in > the queue? I've tried smtpctl schedule all, but it doesn't seem to > resolve the aliases,

Re: smtpd aliases

2013-06-18 Thread William Orr
Thanks Gilles, first for the help and second for the fantastic software. One last question - is there a way I can resend the mail stuck in the queue? I've tried smtpctl schedule all, but it doesn't seem to resolve the aliases, since it already passed through amavis. Gilles Chehade

Re: smtpd aliases

2013-06-18 Thread Gilles Chehade
On Tue, Jun 18, 2013 at 09:10:25AM -0700, William Orr wrote: > Is that available in OpenBSD 5.3? I saw that in the -current manpage > when I was originally configuring smtpd, but lmtp delivery wasn't in > the manpage in 5.3. > Nope, not part of OpenBSD 5.3 But you can fetch a 5.3.3 stable tarball

Re: smtpd aliases

2013-06-18 Thread William Orr
Is that available in OpenBSD 5.3? I saw that in the -current manpage when I was originally configuring smtpd, but lmtp delivery wasn't in the manpage in 5.3. Gilles Chehade June 18, 2013 1:00 AM On Sun, Jun 16, 2013 at 04:44:02PM -0700, William Orr wrote: Hello, all!

Re: smtpd aliases

2013-06-18 Thread Gilles Chehade
On Sun, Jun 16, 2013 at 04:44:02PM -0700, William Orr wrote: > Hello, all! > Hello, > I'm having some problems with aliases in smtpd, in that they're not > properly resolving. I have a bunch of incoming mails stuck in the > queue that dovecot (my MDA) refuses to deliver. The logs don't point > t

Re: smtpd: Aliases only work with for local alias aliases

2010-04-20 Thread Jacek Masiulaniec
On Mon, Apr 12, 2010 at 12:26:09PM +0200, Rene Maroufi wrote: > Hello, > > In my smtpd.conf i have this: > > map aliases { source db "/etc/mail/aliases.db" } > > and: > > accept from all for local deliver to maildir > > If i send a mail to an alias smtpd rejected the mail. The Log says: 530 >