Showing posts with label debian. Show all posts
Showing posts with label debian. Show all posts

5/02/2019

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                                                                                                                                                     md64 2.0.26-6+deb8u2 [273 kB]
Err http://debian-archive.trafficmanager.net/debian/ jessie-backports/main libks                                                                                                                                                     ba8 amd64 1.3.5-2~bpo8+1
  404  Not Found [IP: 52.233.239.54 80]
Get:7 http://debian-archive.trafficmanager.net/debian/ jessie/main gnupg2 amd64                                                                                                                                                      2.0.26-6+deb8u2 [1398 kB]
Get:8 http://debian-archive.trafficmanager.net/debian/ jessie/main libgtk2.0-bin                                                                                                                                                      amd64 2.24.25-3+deb8u2 [535 kB]
Fetched 7839 kB in 1s (5669 kB/s)
E: Failed to fetch http://debian-archive.trafficmanager.net/debian/pool/main/lib                                                                                                                                                     a/libassuan/libassuan0_2.4.3-2~bpo8+1_amd64.deb  404  Not Found [IP: 52.233.239.                                                                                                                                                     54 80]

E: Failed to fetch http://debian-archive.trafficmanager.net/debian/pool/main/p/p                                                                                                                                                     inentry/pinentry-gtk2_0.9.7-5~bpo8+1_amd64.deb  404  Not Found [IP: 52.233.239.5                                                                                                                                                     4 80]

E: Failed to fetch http://debian-archive.trafficmanager.net/debian/pool/main/lib                                                                                                                                                     k/libksba/libksba8_1.3.5-2~bpo8+1_amd64.deb  404  Not Found [IP: 52.233.239.54 8                                                                                                                                                     0]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?



OR this 

Hit http://security.debian.org jessie/updates/main Sources
Ign http://apt.newrelic.com newrelic/non-free Translation-en
Ign http://apt.newrelic.com newrelic/non-free Translation-fr
Hit http://security.debian.org jessie/updates/main amd64 Packages
Err http://debian-archive.trafficmanager.net jessie-backports/main amd64 Packages
  404  Not Found [IP: 52.233.239.54 80]
Ign http://debian-archive.trafficmanager.net jessie-backports/main Translation-en
Ign http://debian-archive.trafficmanager.net jessie-backports/main Translation-fr
Hit http://security.debian.org jessie/updates/main Translation-en
Fetched 2663 B in 2s (1324 B/s)
W: GPG error: http://debian-archive.trafficmanager.net jessie InRelease: The following signatures were invalid: KEYEXPIRED 1507383481
W: Failed to fetch http://debian-archive.trafficmanager.net/debian/dists/jessie-backports/main/source/Sources  404  Not Found [IP: 52.233.239.54 80]

12/18/2018

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