Nagios (OP5) Postfix, Client does not have permissions to send as this sender - but testmail work
4,934
The error message from exchange was pretty clear here
550 5.7.1 Client does not have permissions to send as this sender
It means exchange only permitted your host to send email with sender [email protected]. Unfortunately notification email use [email protected] as sender address.
From OP5 Knowledge Base, there two options to solve your problem
-
Using postfix generic maps. You need to tell postfix to rewrite the sender address from [email protected] to [email protected].
# Postfix main.cf smtp_generic_maps = hash:/etc/postfix/generic #/etc/postfix/generic [email protected] [email protected]
Don't forget to postmap the file
-
Set
--from
parameter in notification commands. Append it with--from [email protected]
. For examplecommand_name=host-notify command_line=$USER3$/notify/poller_notify_send.pl --from [email protected] --other-argument
Related videos on Youtube
Author by
Gbenga B Ayannuga
Updated on September 18, 2022Comments
-
Gbenga B Ayannuga over 1 year
i am this as i convert to Null- safety, and i keep getting this error
here is my code
try { final AuthorizationResult appleResult = await TheAppleSignIn.performRequests([ AppleIdRequest(requestedScopes: [Scope?.email, Scope?.fullName]) ]); if (appleResult.error != null) { // handle errors from Apple here } final AuthCredential credential = OAuthProvider('apple.com').credential( accessToken: String.fromCharCodes(appleResult.credential!.authorizationCode),//here the error coming out.... i have also try Uint8List.fromList but still showing the error idToken: String.fromCharCodes(appleResult.credential!.identityToken),//here the error coming out.... i have also try Uint8List.fromList but still showing the error ); final firebaseResult = await auth.signInWithCredential(credential); users = firebaseResult.user; if (users == null) { return false; } return true; } catch (error) { print(error); return false; }
i have also try
Uint8List.from()
-
masegaloeh about 9 yearsPost the output of
grep 04FDB80C87 maillog
andgrep E6D2D80D33 maillog
-
jamesdlin almost 3 yearsYour problem is that
String.fromCharCodes
expects anIterable<int>
, but(appleResult.credential!.authorizationCode
andappleResult.credential!.identityToken
areUint8List?
. UsingUint8List.from
won't help you because that works in the wrong direction. You need to check that yourUint8List?
values aren't null first. -
Gbenga B Ayannuga almost 3 yearshow will i check the ? Uint8List? i have post my code, please can restructure the code @jamesdlin
-
jamesdlin almost 3 yearsIf you know that should not be null, then you can use
.authorizationCode!
and.identityToken!
. Otherwise you will need to specify a default value to use if they are null (e.g..authorizationCode ?? []
) or add explicit checks. See stackoverflow.com/q/60068435.
-
-
user276909 about 9 yearsThe first option, i have already done. But the second solve my problem. Thank you very much for your help!!