Posts

Showing posts with the label debian

Azure Debian apt update problem ?

Sometimes when the Debian is old, and you try to install or update something, the APT doesn't work in Debian machine in Azure VM, need to update the apt. I got these errors Err http://debian-archive.trafficmanager.net/debian/ jessie-backports/main pinen                                                                                                                                                     try-gtk2 amd64 0.9.7-5~bpo8+1   404  Not Found [IP: 52.233.239.54 80] Get:6 http://debian-archive.trafficmanager.net/debian/ jessie/main gnupg-agent a              ...

Forcing the from address when postfix relays over smtp

Force to send all e-mail with the same email address. accepted This is how to really do it in postfix. This config changes sender addresses from both local originated, and relayed SMTP mail traffic: /etc/postfix/main.cf: sender_canonical_classes = envelope_sender, header_sender sender_canonical_maps = regexp:/etc/postfix/sender_canonical_maps smtp_header_checks = regexp:/etc/postfix/header_check Rewrite envelope address from email originating from the server itself /etc/postfix/sender_canonical_maps: /.+/ newsender@address.com Rewrite from address in SMTP relayed e-mail /etc/postfix/header_check: /From:.*/ REPLACE From: newsender@address.com