PacketFence - BTS - PacketFence
View Issue Details
0001333PacketFenceweb adminpublic2011-11-09 13:072011-11-21 12:05
packetfence4me 
obilodeau 
normaltweakalways
closedfixed 
3.0.1 
3.0.33.0.3 
2308834662652e14f51527ec2a74b54cee3fadfc
0001333: Request to be able to modify from the GUI, the sending email address
My corporate email blocks emails that contain the word root. I would be great to be able to have the option via the GUI to customize the sending email address. I've done this manually via the util.pm, but this gets overwritten every upgrade.
No tags attached.
Issue History
2011-11-09 13:07packetfence4meNew Issue
2011-11-11 10:15obilodeauStatusnew => assigned
2011-11-11 10:15obilodeauAssigned To => obilodeau
2011-11-11 10:16obilodeauNote Added: 0002433
2011-11-11 10:16obilodeauStatusassigned => feedback
2011-11-11 11:03packetfence4meNote Added: 0002435
2011-11-11 11:27obilodeauNote Added: 0002436
2011-11-11 17:07packetfence4meNote Added: 0002441
2011-11-14 09:36obilodeaumtn revision => 2308834662652e14f51527ec2a74b54cee3fadfc
2011-11-14 09:36obilodeauNote Added: 0002442
2011-11-14 09:36obilodeauStatusfeedback => resolved
2011-11-14 09:36obilodeauFixed in Version => +1
2011-11-14 09:36obilodeauResolutionopen => fixed
2011-11-14 09:36obilodeauCategoryfeature => web admin
2011-11-21 12:04obilodeauNote Added: 0002455
2011-11-21 12:04obilodeauTarget Version => 3.0.3
2011-11-21 12:05obilodeauStatusresolved => closed
2011-11-21 12:05obilodeauFixed in Version+1 => 3.0.3

Notes
(0002433)
obilodeau   
2011-11-11 10:16   
Have you tried modifying the configuration parameter alerting.emailaddr? I'm pretty sure that's what you are looking for.
(0002435)
packetfence4me   
2011-11-11 11:03   
alerting.emailaddr is for who the email is sent to, correct? I want to be able to modify the email address that these alerts are sent from via the GUI.

Currently in the util.pm it is set for something like this if I recall correctly 'root@' . $fqdn

I'd like to be able to update that via the GUI to something like pfalert@pf.test.com as the sending email address and have that carry across via updates.

Thanks,
(0002436)
obilodeau   
2011-11-11 11:27   
I meant alerting.fromaddr.. And now I realize that this parameter is not documented...

but the code should do the right thing:

my $from = $Config{'alerting'}{'fromaddr'} || 'root@' . $fqdn;
(0002441)
packetfence4me   
2011-11-11 17:07   
cool. Thanks
(0002442)
obilodeau   
2011-11-14 09:36   
Turns out that it was documented but not visible from the Web Admin because it didn't have a default value in pf.conf.default. I provided a default value (empty) and documented that empty means root@<domain-name>.
(0002455)
obilodeau   
2011-11-21 12:04   
Fixed released in 3.0.3 today.