Le mar. 18 juil. 2023 à 11:51, pawanKumar pawan4749@gmail.com a écrit :
Hi Team,
I have gone through the Postfix configuration in my server and have configured it accordingly in *main.cf http://main.cf* file configuration:
*# See /usr/share/postfix/main.cf.dist for a commented, more complete versionsmtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)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 = 4halias_maps = hash:/etc/aliasesalias_database = hash:/etc/aliasesmydestination = $myhostname, localhost.$mydomain, $mydomaininet_interfaces = allrecipient_delimiter = +compatibility_level = 2#mychangesmynetworks = 158.0.0.0/24 http://158.0.0.0/24, 10.0.0.0/24 http://10.0.0.0/24, example.com http://example.commyorigin = $mydomainmydomain = example.com http://example.commyhostname = lav01ny80.example.com http://lav01ny80.example.comrelayhost = smtp.host.com:25 http://smtp.host.com:25smtpd_recipient_restrictions = $mynetworks, permit_mynetworks, permitmailbox_size_limit = 0inet_protocols = all*
And re-run the job, then it it says *mail.info http://mail.info: *
*Jul 18 09:08:11 lav01ny80 postfix/smtpd[28732]: connect from localhost[::1]Jul 18 09:08:11 lav01ny80 postfix/smtpd[28732]: warning: unknown smtpd restriction: "158.0.0.0/24 http://158.0.0.0/24"Jul 18 09:08:11 lav01ny80 postfix/smtpd[28732]: NOQUEUE: reject: RCPT from localhost[::1]: 451 4.3.5 Server configuration error; from=root@localhost to=<pavankumar.reddy@domain.com pavankumar.reddy@domain.com> proto=ESMTP helo=<lav01ny80.domain.com http://lav01ny80.domain.com>Jul 18 09:08:11 lav01ny80 postfix/smtpd[28732]: lost connection after RSET from localhost[::1]Jul 18 09:08:11 lav01ny80 postfix/cleanup[28737]: A5131D6B: message-id=<20230718090811.A5131D6B@lav01ny80.domain.com 20230718090811.A5131D6B@lav01ny80.domain.com>Jul 18 09:08:11 lav01ny80 postfix/smtpd[28732]: disconnect from localhost[::1] ehlo=1 mail=1 rcpt=0/1 rset=1 commands=3/4Jul 18 09:08:11 lav01ny80 postfix/qmgr[23884]: A5131D6B: from=<double-bounce@lav01ny80.domain.com double-bounce@lav01ny80.domain.com>, size=997, nrcpt=1 (queue active)Jul 18 09:08:11 lav01ny80 postfix/local[28738]: A5131D6B: to=<lava@lav01ny80.domain.com lava@lav01ny80.domain.com>, orig_to=<postmaster>, relay=local, delay=0.17, delays=0.12/0.04/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)Jul 18 09:08:11 lav01ny80 postfix/qmgr[23884]: A5131D6B: removedJul 18 09:11:31 lav01ny80 postfix/anvil[28735]: statistics: max connection rate 1/60s for (smtp:::1) at Jul 18 09:08:11Jul 18 09:11:31 lav01ny80 postfix/anvil[28735]: statistics: max connection count 1 for (smtp:::1) at Jul 18 09:08:11Jul 18 09:11:31 lav01ny80 postfix/anvil[28735]: statistics: max cache size 1 at Jul 18 09:08:11*
I was not able to figure out where it is picking up from the local host and not from the smtp server. I need your advice in resolving the issue.
In the LAVA settings, you have to add the right SMTP configuration. See https://docs.djangoproject.com/en/4.2/ref/settings/#email-host For the LAVA settings, add into /etc/lava-server/settings.d/<anything>.yaml
Thanks & Regards *Pavan Kumar*
On Tue, Jul 4, 2023 at 2:51 AM Stefan < lists.lavasoftware.org_23@green-sparklet.de> wrote:
Hi Pavan,
"access denied" is just a part of the truth - you will have to read the whole error message: It says "Relay access denied"
It's a missconfiguration in your mail config: You are sending E-Mails from root@localhost and not from a proper domain.
It depends on your mail setup on how to fix this, but here are some hints: https://hoststud.com/resources/fixing-the-454-4-7-1-relay-access-denied-erro...
Regards Stefan
On 2023-07-03 12:28, pawanKumar wrote:
Hi Remi,
I was going through the logs in server and I found below:
It is said as access denied.
*Jul 3 10:09:53 lav01ny80 postfix/smtpd[21874]: connect from localhost[::1] Jul 3 10:09:53 lav01ny80 postfix/smtpd[21874]: NOQUEUE: reject: RCPT from localhost[::1]: 454 4.7.1 <pawan4749@gmail.com pawan4749@gmail.com>: Relay access denied; from=root@localhost to=<pawan4749@gmail.com pawan4749@gmail.com> proto=ESMTP helo=<lav01ny80.resi.com http://lav01ny80.resi.com> Jul 3 10:09:53 lav01ny80 postfix/smtpd[21874]: lost connection after RSET from localhost[::1] Jul 3 10:09:53 lav01ny80 postfix/smtpd[21874]: disconnect from localhost[::1] ehlo=1 mail=1 rcpt=0/1 rset=1 commands=3/4*
Is there any configuration that needs to be enabled from the server side or it's a network issue.
Best Regards *Pavan Kumar*
On Sun, Jul 2, 2023 at 6:40 PM pawanKumar pawan4749@gmail.com wrote:
Hello Remi,
In the gunicorn logs, I can see as below: [image: lava_notify-log.PNG] In LAVA interface the status how as "NOT SENT" [image: lava-notify.PNG] Any advice on how to receive the notification.
Best Regards *Pavan Kumar*
On Fri, Jun 30, 2023 at 3:10 PM Remi Duraffort < remi.duraffort@linaro.org> wrote:
Hello,
have you looked at the gunicorn logs in /var/log/lava-server/gunicorn.log
Rgds
Le jeu. 29 juin 2023 à 18:47, pawanKumar pawan4749@gmail.com a écrit :
Hello Team,
I'm using notify action in the job definition to notify users about the status of the job. I'm already a registered user in lava and after completion of my job, the administration site shows the status as "*not sent*". Please let me know what can be the reason, and how can i achieve it?
[image: lava-notify.PNG] Below is the job definition i'm using:
*device_type: ADT-UNIT1 job_name: sample test to notify user timeouts: job: minutes: 15 action: minutes: 10 connection: minutes: 5 visibility: public actions: - command: name: relay_pwr_on timeout: minutes: 1 - deploy: to: flasher images: package: url: https://artifactory.softwaretools.com/artifactory/gop-generic-stable-local/b... https://artifactory.softwaretools.com/artifactory/gop-generic-stable-local/build-artifacts/grip-quick/
- boot: method: u-boot commands: - setenv factorymode 1
- boot auto_login: login_prompt: 'login:' username: root password_prompt: 'Password:' password: root
login_commands: - touch /home/root/test_file - ifconfig prompts: - 'root@hon-grip' - 'root@GRIP' notify: recipients: - to: method: email user: pavan criteria: status: finished verbosity: verbose *
Thanks & Regards, Pavan
Lava-devel mailing list -- lava-devel@lists.lavasoftware.org To unsubscribe send an email to lava-devel-leave@lists.lavasoftware.org
-- Rémi Duraffort Principal Tech Lead Automation Software Team Linaro
Lava-users mailing list -- lava-users@lists.lavasoftware.org To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Lava-users mailing list -- lava-users@lists.lavasoftware.org To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Lava-users mailing list -- lava-users@lists.lavasoftware.org To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s