Postfix help needed
I'd like to have cron jobs notify me at my gmail account when they run.
Googling around I installed mailx and postfix. The postfix installation established main.cf as: > # See /usr/share/postfix/main.cf.dist for a commented, more complete > version > > > # Debian specific: Specifying a file name will cause the first > # line of that file to be used as the name. The Debian default > # is /etc/mailname. > #myorigin = /etc/mailname > > smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) > biff = no > > # appending .domain is the MUA's job. > append_dot_mydomain = no > > # Uncomment the next line to generate "delayed mail" warnings > #delay_warning_time = 4h > > # TLS parameters > smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem > smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key > smtpd_use_tls=yes > smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache > smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache > > # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for > # information on enabling SSL in the smtp client. > > myhostname = stewart > alias_maps = hash:/etc/aliases > alias_database = hash:/etc/aliases > mydestination = stewart@localhost, stewart, localhost.localdomain, > localhost > relayhost = > mynetworks = 127.0.0.0/8 > mailbox_size_limit = 0 > recipient_delimiter = + > inet_interfaces = loopback-only The machine is not part of a domain -- it's just an elderly Gateway sitting on a shaky desk before an elderly fat man. hostname is stewart. I don't get no stinkin' email, and the more I Google, the confuseder I get. Can someone untangle me? stew -- kubuntu-users mailing list kubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users |
Postfix help needed
Stew Schneider said the following at 11/28/2007 08:19 PM :
> I'd like to have cron jobs notify me at my gmail account when they run. > Googling around I installed mailx and postfix. The postfix installation > established main.cf as: > >> # See /usr/share/postfix/main.cf.dist for a commented, more complete >> version >> >> >> # Debian specific: Specifying a file name will cause the first >> # line of that file to be used as the name. The Debian default >> # is /etc/mailname. >> #myorigin = /etc/mailname >> >> smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) >> biff = no >> >> # appending .domain is the MUA's job. >> append_dot_mydomain = no >> >> # Uncomment the next line to generate "delayed mail" warnings >> #delay_warning_time = 4h >> >> # TLS parameters >> smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem >> smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key >> smtpd_use_tls=yes >> smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache >> smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache >> >> # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for >> # information on enabling SSL in the smtp client. >> >> myhostname = stewart >> alias_maps = hash:/etc/aliases >> alias_database = hash:/etc/aliases >> mydestination = stewart@localhost, stewart, localhost.localdomain, >> localhost >> relayhost = >> mynetworks = 127.0.0.0/8 >> mailbox_size_limit = 0 >> recipient_delimiter = + >> inet_interfaces = loopback-only > The machine is not part of a domain -- it's just an elderly Gateway > sitting on a shaky desk before an elderly fat man. hostname is stewart. > I don't get no stinkin' email, and the more I Google, the confuseder I get. > > Can someone untangle me? You have stumbled on what is, to my mind, the most arcanely configured program in the history of UNIX. (Well, sendmail takes that honour, but postfix is the modern equivalent.) I don't understand why there isn't some GUI-based configuration program for postfix (maybe there is and I've just never found it), because the number of possibilities and inter-related options in postfix cries out for a GUI to make sense of everything. I have a couple of machines here using postfix, but neither set up is exactly the same as you want, so I won't start by posting my configuration files, which would just confuse things (at this point, I simply copy working configurations when I install postfix on a new machine, because I don't remember enough about how I first got things to work several years ago). Anyway: Question #1: are you sure that postfix is running? (ps auxw | grep postfix) Question #2: what do you get when you examine the mail queue (mailq) Question #3: what kinds of things do you see in the mail log (the various /var/log/mail* files) That should give us something to work with -- or at least to guess where to start. Doc -- kubuntu-users mailing list kubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users |
Postfix help needed
D. R. Evans wrote:
> You have stumbled on what is, to my mind, the most arcanely configured > program in the history of UNIX. (Well, sendmail takes that honour, but > postfix is the modern equivalent.) > OK...I'm REALLY in deep water. After I posted, but before you did, I put the problem aside and went to clean out my spam box in Gmail. There I found all my test messages. Haven't a clue how I did it, but my theory is that any landing you can walk away from.... stew -- kubuntu-users mailing list kubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users |
Postfix help needed
D. R. Evans wrote:
> Anyway: > > Question #1: are you sure that postfix is running? (ps auxw | grep postfix) > Question #2: what do you get when you examine the mail queue (mailq) > Question #3: what kinds of things do you see in the mail log (the various > /var/log/mail* files) > > That should give us something to work with -- or at least to guess where to > start. So this won't be a complete waste of your time, I wonder if you could educate me a bit? I followed the instructions at http://prantran.blogspot.com/2007/01/getting-postfix-to-work-on-ubuntu-with.html down to the wrap up. I didn't quite follow what he was saying, but now understand that he was saying I should follow the instructions at http://www.kirranet.co.nz/content/howto-relay-email-using-ubuntu,-postfix-and-gmail which included installation of a Thawte cert. I didn't do that, but my system mail wound up in my gmail inbox nonetheless. The problem is that I don't understand how the various pieces fit together well enough, so I'm prowling in the dark. Q1: Postfix is running in three processes Q2: mailq reports no mail Q3:/var/log/mail.err has Nov 27 23:37:06 Stewart sSMTP[15326]: 553 Stewart.adelphia.net does not exist Nov 28 22:23:10 Stewart postfix/postfix-script[18789]: fatal: usage: postfix start (or stop, reload, abort, flush, check, set-permissions, upgrade-configuration) mail.err.0 similarly complains about Stewart.adelphia.net mail.info has quite a lot: Nov 27 23:37:06 Stewart sSMTP[15326]: 553 Stewart.adelphia.net does not exist Nov 27 23:47:39 Stewart postfix/master[15673]: daemon started -- version 2.4.5, configuration /etc/postfix Nov 27 23:54:28 Stewart postfix/pickup[15677]: 2EEDE10761: uid=1000 from=<stewart> Nov 27 23:54:28 Stewart postfix/cleanup[15696]: 2EEDE10761: message-id=<20071128045428.2EEDE10761@Stewart> Nov 27 23:54:28 Stewart postfix/qmgr[15678]: 2EEDE10761: from=<stewart@Stewart>, size=285, nrcpt=1 (queue active) Nov 27 23:54:28 Stewart postfix/cleanup[15696]: 3EC4C10762: message-id=<20071128045428.2EEDE10761@Stewart> Nov 27 23:54:28 Stewart postfix/qmgr[15678]: 3EC4C10762: from=<stewart@Stewart>, size=400, nrcpt=1 (queue active) Nov 27 23:54:28 Stewart postfix/local[15698]: 2EEDE10761: to=<root@Stewart>, orig_to=<root>, relay=local, delay=0.12, delays=0.08/0.02/0/0.02, dsn=2.0.0, status=sent (forwarded as 3EC4C10762) Nov 27 23:54:28 Stewart postfix/qmgr[15678]: 2EEDE10761: removed Nov 27 23:54:32 Stewart postfix/smtp[15699]: 3EC4C10762: to=<stew.schneider@gmail.com>, orig_to=<root>, relay=gmail-smtp-in.l.google.com[64.233.185.114]:25, delay=4.2, delays=0.01/0.02/0.64/3.5, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[64.233.185.114] said: 550-5.7.1 [75.81.209.182] The IP you're using to send email is not authorized 550-5.7.1 to send email directly to our servers. Please use 550 5.7.1 the SMTP relay at your service provider instead. 32si3573573wri (in reply to end of DATA command)) Nov 27 23:54:32 Stewart postfix/cleanup[15696]: 738D810761: message-id=<20071128045432.738D810761@Stewart> Nov 27 23:54:32 Stewart postfix/qmgr[15678]: 738D810761: from=<>, size=2602, nrcpt=1 (queue active) Nov 27 23:54:32 Stewart postfix/cleanup[15696]: 7766810763: message-id=<20071128045432.738D810761@Stewart> Nov 27 23:54:32 Stewart postfix/bounce[15702]: 3EC4C10762: sender non-delivery notification: 738D810761 Nov 27 23:54:32 Stewart postfix/qmgr[15678]: 3EC4C10762: removed Nov 27 23:54:32 Stewart postfix/qmgr[15678]: 7766810763: from=<>, size=2720, nrcpt=1 (queue active) Nov 27 23:54:32 Stewart postfix/local[15698]: 738D810761: to=<stewart@Stewart>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (forwarded as 7766810763) Nov 27 23:54:32 Stewart postfix/qmgr[15678]: 738D810761: removed Nov 27 23:54:36 Stewart postfix/smtp[15699]: 7766810763: to=<stew.schneider@gmail.com>, orig_to=<stewart@Stewart>, relay=gmail-smtp-in.l.google.com[64.233.185.114]:25, delay=3.8, delays=0.01/0/0.3/3.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1196225676 31si3925508wri) Nov 27 23:54:36 Stewart postfix/qmgr[15678]: 7766810763: removed Nov 27 23:55:03 Stewart postfix/pickup[15677]: 1854F10761: uid=1000 from=<stewart> Nov 27 23:55:03 Stewart postfix/cleanup[15696]: 1854F10761: message-id=<20071128045503.1854F10761@Stewart> Nov 27 23:55:03 Stewart postfix/qmgr[15678]: 1854F10761: from=<stewart@Stewart>, size=311, nrcpt=1 (queue active) Nov 27 23:55:03 Stewart postfix/cleanup[15696]: 1F22A10744: message-id=<20071128045503.1854F10761@Stewart> Nov 27 23:55:03 Stewart postfix/qmgr[15678]: 1F22A10744: from=<stewart@Stewart>, size=428, nrcpt=1 (queue active) Nov 27 23:55:03 Stewart postfix/local[15698]: 1854F10761: to=<root@localhost>, relay=local, delay=0.04, delays=0.03/0/0/0.01, dsn=2.0.0, status=sent (forwarded as 1F22A10744) Nov 27 23:55:03 Stewart postfix/qmgr[15678]: 1854F10761: removed Nov 27 23:55:06 Stewart postfix/smtp[15699]: 1F22A10744: to=<stew.schneider@gmail.com>, orig_to=<root@localhost>, relay=gmail-smtp-in.l.google.com[64.233.185.114]:25, delay=3.8, delays=0.01/0/0.31/3.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1196225706 29si81861wrl) Nov 27 23:55:06 Stewart postfix/qmgr[15678]: 1F22A10744: removed Nov 28 11:17:52 Stewart postfix/master[15673]: reload configuration /etc/postfix Nov 28 11:17:53 Stewart postfix/master[15673]: reload configuration /etc/postfix Nov 28 11:18:38 Stewart postfix/master[15673]: reload configuration /etc/postfix Nov 28 22:02:40 Stewart postfix/master[15673]: terminating on signal 15 Now, since I have no cert, how is gmail accepting my mail?? (a very confused) stew -- kubuntu-users mailing list kubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users |
Postfix help needed
D. R. Evans wrote:
> You have stumbled on what is, to my mind, the most arcanely configured > program in the history of UNIX. (Well, sendmail takes that honour, but > postfix is the modern equivalent.) I think it applies to MTAs in general > I don't understand why there isn't some GUI-based configuration program > for postfix (maybe there is and I've just never found it), because the > number of possibilities and inter-related options in postfix cries out for > a GUI to make sense of everything. I used to hang out on the exim developers list, and the answer to that is that MTA developers believe that GUIs are evil. The prevailing opinion was that if you make it easy to configure mail, idiots will be configuring mail. My stock response was that idiots _are_ configuring mail, so we'd damn well better do something to make it easier for them to do it without screwing up. I didn't change many opinions :-) Meanwhile, there's webmin... imo, for what he wants, masqmail is really simple. -- derek -- kubuntu-users mailing list kubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users |
Postfix help needed
On Thursday 29 November 2007 6:26:02 pm Derek Broughton wrote:
> D. R. Evans wrote: > > You have stumbled on what is, to my mind, the most arcanely configured > > program in the history of UNIX. (Well, sendmail takes that honour, but > > postfix is the modern equivalent.) > > I think it applies to MTAs in general > > > I don't understand why there isn't some GUI-based configuration program > > for postfix (maybe there is and I've just never found it), because the > > number of possibilities and inter-related options in postfix cries out > > for a GUI to make sense of everything. > > I used to hang out on the exim developers list, and the answer to that is > that MTA developers believe that GUIs are evil. The prevailing opinion was > that if you make it easy to configure mail, idiots will be configuring > mail. My stock response was that idiots _are_ configuring mail, so we'd This idiot configured a mailserver for his internal network with the help of a very fine man on this list. He helped me for days to understand postfix and the workings of a mailserver, and guess what? I'm not an idiot anymore :-) So In a way I sort of agree with the developers, BUT for a different reason and that is only because if there were a GUI to set up a mailserver, then I'd still be an idiot. LOL But I also agree, that for those who want to remain idiot's then bring on the GUI. :-) You see, there's always a bright side to something negative. -- David M. -- kubuntu-users mailing list kubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users |
Postfix help needed
David McGlone wrote:
> On Thursday 29 November 2007 6:26:02 pm Derek Broughton wrote: >> I used to hang out on the exim developers list, and the answer to that is >> that MTA developers believe that GUIs are evil. The prevailing opinion >> was that if you make it easy to configure mail, idiots will be >> configuring >> mail. My stock response was that idiots _are_ configuring mail, so we'd > > This idiot configured a mailserver for his internal network with the help > of a very fine man on this list. He helped me for days to understand > postfix and the workings of a mailserver, and guess what? > > I'm not an idiot anymore :-) LOL. I prefer to point out that you were merely ignorant. Somebody smarter than I, once said something to the effect that the difference between ignorance and stupidity is that the former is easily curable (otoh, Frank Zappa said "Stupidity has a certain charm - ignorance does not... "). It's great that your ignorance has been cured, but there's also the situation where the point-haired boss, says "We need a mail server - you set it up". And he probably says it to the least capable employee he has, because the _capable_ employees are either doing things he knows are more important, or they are able to make him think they are :-) > So In a way I sort of agree with the developers, BUT for a different > reason and that is only because if there were a GUI to set up a > mailserver, then I'd still be an idiot. LOL And you're absolutely right. The important detail though is that there are _always_ going to be stupid people running mail systems (most of them are working for ISPs) and we need to make it as hard as possible for them to screw things up for the rest of us :-) > But I also agree, that for those who want to remain idiot's then bring on > the GUI. :-) > > You see, there's always a bright side to something negative. Yep! -- derek -- kubuntu-users mailing list kubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users |
Postfix help needed
On Friday 30 November 2007 7:02:52 pm Derek Broughton wrote:
> David McGlone wrote: > > On Thursday 29 November 2007 6:26:02 pm Derek Broughton wrote: > >> I used to hang out on the exim developers list, and the answer to that > >> is that MTA developers believe that GUIs are evil. The prevailing > >> opinion was that if you make it easy to configure mail, idiots will be > >> configuring > >> mail. My stock response was that idiots _are_ configuring mail, so we'd > > > > This idiot configured a mailserver for his internal network with the help > > of a very fine man on this list. He helped me for days to understand > > postfix and the workings of a mailserver, and guess what? > > > > I'm not an idiot anymore :-) > > LOL. I prefer to point out that you were merely ignorant. Somebody > smarter than I, once said something to the effect that the difference > between ignorance and stupidity is that the former is easily curable (otoh, > Frank Zappa said "Stupidity has a certain charm - ignorance does not... "). > It's great that your ignorance has been cured, but there's also the > situation where the point-haired boss, says "We need a mail server - you > set it up". And he probably says it to the least capable employee he has, > because the _capable_ employees are either doing things he knows are more > important, or they are able to make him think they are :-) Very good point. > > > So In a way I sort of agree with the developers, BUT for a different > > reason and that is only because if there were a GUI to set up a > > mailserver, then I'd still be an idiot. LOL > > And you're absolutely right. The important detail though is that there are > _always_ going to be stupid people running mail systems (most of them are > working for ISPs) and we need to make it as hard as possible for them to > screw things up for the rest of us :-) That's true. It's funny how I've worked with computers for about 12 years 99.9% being M$ and I never once bothered learning how to run a mailserver. -- David M. You're a card which will have to be dealt with. -- kubuntu-users mailing list kubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users |
| All times are GMT. The time now is 05:18 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.